Hi,
same opinion from my side. We use smarty in the office and we are  
faced very often with smarty limitations which are very annoying.
Another thing is the lack of inheritance or customization  
possibilities of smarty.

Try to add a custom handler for the compiling which does not use the  
primary operations of a normal and local file system. Forget it!
They have a pretty good documentation, but i do not like the php4/php5  
code.

A very important point is, that symfony supports the main features of  
a template engine. So for example, why use an external template  
engine, which supports caching, when the framework does it for you?

However we have to use smarty, because it was the best template engine  
on the market. So, when external designers have to write smarty  
templates, it is a good choice. If the developers have to make the  
designers job, then forget smarty and use the raw symfony templates.

You will save a lot of time!

Cheers,
Frank


Am 05.10.2008 um 17:01 schrieb Fabrice B:

>
> I used Smarty for a long time because I found the templates much more
> redable. But from my experience the PHP code generated by Smarty from
> the templates is quite ugly. And since I discovered the PHP "script
> version" ie "if(): endif;" I find PHP code in the template quite
> readable.
>
> You can go even further, depending on your PHP settings, by using
> "short tags". <? ?> instead of <?php ?>. I personally don't because I
> don't want to depend on the PHP settings of the server, but if you
> really want smarty-like readability without adding another useless
> layer, it is surely the best option. I would not recommend Smarty
> anymore.
>
> Cheers,
>
> Fabrice
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to