I have used smarty in project with pure php and the template system of Zend
Framework in proyects done in Zend Framework, both are fine for me.


Gerardo.


On Thu, Apr 26, 2012 at 5:48 AM, Simon Schick
<simonsimc...@googlemail.com>wrote:

> On Thu, Apr 26, 2012 at 12:07 AM, Yared Hufkens <y4...@yahoo.de> wrote:
> >
> > Why use an external engine which slows your scripts down to do something
> > which can easily be done by PHP itself? PHP is imho the best template
> engine
> > for PHP.
> > With PHP 5.4, it became even easier because <?=$do->somestuff()?> can be
> > used without short_open_tag enabled.
> > However, you always schould divide UI and backend.
> >
>
> Hi,
>
> If you like to write an xml-template by having purely xml, you could
> also use OPT (Open Power Template).
>
> You can f.e. add a attribute to a tag by decision by writing this code:
>
> <div>
>    <opt:attribute name="class" value="highlight" opt:if="$highlightDiv"/>
>    Content
> </div>
>
> Feels a bit cleaner to me than writing
>
> <div <?php if ($highlightDiv) : ?>class="highlight"<?php endif; ?>>
>    Content
> </div>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Gerardo Benitez
-------------------------
Programador Web Freelance

Reply via email to