[QUOTE=Marco Steinhaeuser;25468]Hi,
there is an option in admin -> core settings -> system -> other settings -> How to handle PHP code embedded in templates. Turning it to “execute PHP code”, isn’t it the same what you did?
Regards[/QUOTE]
Like avenger said, it’s not the same. The first thing is, that smarty is doing the whole rendering and the second is, that all the vars, assigned to smarty are nnot in the php symbol table, so you don’t have access to it, also there is no $smarty var. So you can do nearly nothing
[QUOTE=avenger;25513]Could you show your new “start”-Template, just to see the difference?[/QUOTE]
You mean the code or the result? The result is the same, there is no difference. The only difference is, that it feels faster.
[QUOTE=avenger;25513]On thing to keep in mind is, that you are running the risk, to detach yourself very effectively from easy template updates…
These are communicated as “diff”-lists against the previous template version, and I believe it will become a hell of a job to retrofit these in a completely different template structrue.
You sure can handle this, but this is definitely nothing I would recommend to “Joe Shopowner”…[/QUOTE]
Yeah for sure, that’s right. It’s a hell of a job doing this. It’s the same as conflicted SVN-Files! Hell! Noone wants to do this
And we won’t, because we will have a complete own design, we won’t need the default layout. We will do a bigger thing with OXID. And that’s one of the main reasons to get rid of smarty, because our web designer than don’t have to do this ugly smarty stuff, he can just write easy and fast php.
Currently we are using the framework cakePHP for our platform and there you don’t have any template language! Just php! You get the variables available directly from the controller. And that’s the thing he likes and we programmers like
Currently the conclusion is, that some files I converted are bigger, some are smaller. When I’m finished, I think all files will be smaller, because I will optimize some function calls, I will make them shorter. For example the oxmultilang(). In cakePHP the translate function is __(). I think I will do sth like this.
Greetings from cologne,
Andreas!