TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Script Giveaway (http://www.talkphp.com/script-giveaway/)
-   -   what is best template engine? (http://www.talkphp.com/script-giveaway/5034-what-best-template-engine.html)

hostpeyma 10-16-2009 06:17 PM

what is best template engine?
 
hi
i php coder and use smarty for template
is there any other engine?
i hopefully wait for your posts
we wanna create light portal with template
thanks ^^

Enfernikus 10-16-2009 07:37 PM

PHPTal if you really want to add another layer but php itself is a templating engine

ETbyrne 10-16-2009 09:08 PM

What Enfernikus means by PHP itself being a templating engine, he is referring to PHP code like this:

PHP Code:

<?php foreach($articles as $article): ?>

    <h2><?php echo $article['title']; ?></h2>
    <p><?php echo $article['content']; ?></p>

<?php endforeach; ?>


<?php if($user->is_admin()): ?>

    <p><a href="#">Post New Article</a></p>

<?php endif; ?>

It's faster and more powerful than any templating engine out there.

hostpeyma 10-17-2009 06:34 AM

ok, but its not my require for template engine
i want have CMS with many HTML template,
user can install this template and use CMS in new style
so how can use this?
surly i don't want user see my php code.

Enfernikus 10-17-2009 11:42 PM

Strictly speaking this is not true, WordPress is possibly the most popular blogging platform right now ( and gaining weight as a CMS ) and it's themes are php.

However if you insist on another layer than PHPTal & Smarty would be your best bets. I personally prefer Tal but it's not as user friendly as Smarty ( This is based on a survey we did of our customers and their attempts to customize their templates ) so if you're going for the masses it'd be best to go with Smarty as it's sort of a defacto templating engine

hostpeyma 10-18-2009 07:11 AM

yes, wordpress is PHP! i didn't think about this,
its good idea,
what's your advice for have block system
for example i have 4 template and user can choose in admin area and then can modify block place (stat block, post block and etc) and there is place for import header.

Tanax 10-18-2009 02:28 PM

Somebody move this topic to a more correct forum?

delayedinsanity 10-27-2009 05:21 AM

Eh, templating engines are given away. ;)

Quote:

( and gaining weight as a CMS )
The Definitive Guide To Using Wordpress as a CMS


All times are GMT. The time now is 09:29 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0