Re: [PHP] Best PHP Template System

2012-05-04 Thread Gerardo Benitez
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.comwrote:

 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


Re: [PHP] Best PHP Template System

2012-04-26 Thread Simon Schick
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



Re: [PHP] Best PHP Template System

2012-04-25 Thread Yared Hufkens
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.

--- Ursprüngl. Mitteilung ---
Von: Willie Matthews
Gesend.:  25.04.2012, 23:48 
An: PHP Mailinglist
Betreff: [PHP] Best PHP Template System


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have been looking at Smarty Template Engine. The only reason I don't
like it is because it is really slow when there are a bunch of results
for pagination.

Question is, is there something out there that is a lot faster with
pagination built into it? Also with the features of Smarty Template
Engine?

- -- 
Willie Matthews
matthews.wil...@gmail.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPmHE9AAoJEPyaSMdprRSF+swH/jkXqfzG+uHE/g7HleLnRIa+
Ld0QYCIXPA1xdv5yPl3HndxPkMeCbvmqPCcdCchQR+2QGV2vOi/P+LycJbh01jb0
ht1BGb+MsOikyT+sNn2VYT1kjKENwZ3VJ4tsjTaGZl9Si98NZGAhCdzAhvkIvB8t
xavbA8eX7y6fKpaGMmV5fOfPDSxavLMy0T7ox2mmLo7UBFcjRyd+Icghdd7rSK34
WH8Wd/nhpcX4E/zCc0D1zEnfzWP/Z7yS0GJi/sLSGpZcs7AyAvQV60XKCSuABBRf
z23n0wrdSmgjbahGFalmog+9u5JxceCxwQ9ZT4tzOgoihLwhwZCUYFxyaWv5jyI=
=jMqu
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best PHP Template System

2012-04-25 Thread Willie
Point taken. I will try to learn without the Template Engine! Thanks a lot
Yared!

On Wed, Apr 25, 2012 at 3:07 PM, 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.

 --- Ursprüngl. Mitteilung ---
 Von: Willie Matthews
 Gesend.:  25.04.2012, 23:48
 An: PHP Mailinglist
 Betreff: [PHP] Best PHP Template System


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I have been looking at Smarty Template Engine. The only reason I don't
 like it is because it is really slow when there are a bunch of results
 for pagination.

 Question is, is there something out there that is a lot faster with
 pagination built into it? Also with the features of Smarty Template
 Engine?

 - --
 Willie Matthews
 matthews.wil...@gmail.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.17 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iQEcBAEBAgAGBQJPmHE9AAoJEPyaSMdprRSF+swH/jkXqfzG+uHE/g7HleLnRIa+
 Ld0QYCIXPA1xdv5yPl3HndxPkMeCbvmqPCcdCchQR+2QGV2vOi/P+LycJbh01jb0
 ht1BGb+MsOikyT+sNn2VYT1kjKENwZ3VJ4tsjTaGZl9Si98NZGAhCdzAhvkIvB8t
 xavbA8eX7y6fKpaGMmV5fOfPDSxavLMy0T7ox2mmLo7UBFcjRyd+Icghdd7rSK34
 WH8Wd/nhpcX4E/zCc0D1zEnfzWP/Z7yS0GJi/sLSGpZcs7AyAvQV60XKCSuABBRf
 z23n0wrdSmgjbahGFalmog+9u5JxceCxwQ9ZT4tzOgoihLwhwZCUYFxyaWv5jyI=
 =jMqu
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 

Willie Matthews
matthews.wil...@gmail.com