473,324 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Which Template Engine?

Hello,

I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't
been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?

Thanks in advance

Don
Jul 17 '05 #1
6 2188
In article <A0*****************@newsread1.news.pas.earthlink. net>,
"Don Sutter" <no@way.com> wrote:
I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't
been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?


My opinion is that Smarty rules ... some people think there is too much
'programming'/logic going on in Smarty templates, but I think that as
long as it's logic that is solely concerned with presentation it can be
argued that it belongs in the template.

Some people also dislike the different Smarty syntax, for example:

{foreach from=$array key=key item=value}

instead of

foreach ($array as $key => $value)

But I find that it in fact helps me to keep business logic and template
logic separate.

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #2
Don Sutter wrote:
Hello,

I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't
been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?


What about PHP ?-)

Else, the PEAR library has several templating systems. You may also want
to have a look at PHPTal, the PHP implementation of Zope's templates.

HTH
Bruno

Jul 17 '05 #3
If you want to use a templating system that is (a) not tied to PHP and (b)
governed by W3C standards then I suggest you take a look at XSL. In this
method all my PHP scripts do is output the data to an XML file then perform
an XSL Transformation using a predefined XSL stylesheet. I have made my
stylesheets reusable so that I can produce 300+ pages from just 8 XSL files.

For more details take a look at
http://www.tonymarston.co.uk/xml-xsl/index.html.

I also have a sample application which you can run online which is
documented at http://www.tonymarston.net/php-mysql...plication.html

--
Tony Marston

http://www.tonymarston.net

"Don Sutter" <no@way.com> wrote in message
news:A0*****************@newsread1.news.pas.earthl ink.net...
Hello,

I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?

Thanks in advance

Don

Jul 17 '05 #4
"Don Sutter" <no@way.com> wrote in message news:<A0*****************@newsread1.news.pas.earth link.net>...
Hello,

I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't
been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?


Please look at the archives. The answer is totally disputed. For
example, see one of the previous discussions
<http://groups.google.com/groups?threadm=c17ndg%24l3t%241%40newsreader.mailg ate.org>

Also see:
1. http://www.phpbuilder.com/annotate/m...hp3?id=1013434
2. http://www.phpbuilder.com/annotate/m...hp3?id=1013711
3. http://www.phpbuilder.com/annotate/m...hp3?id=1013461
4. http://www.phppatterns.com/index.php...cleview/4/1/1/
5. http://www.massassi.com/php/articles/template_engines/
6. http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #5
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om...
"Don Sutter" <no@way.com> wrote in message news:<A0*****************@newsread1.news.pas.earth link.net>...
Hello,

I'm looking for "Template" recomendations for PHP 4, like which one is
popular or has the best/most features.

I'm somewhat of a newbie with PHP and bacame interested in templates via
Wrox's Professional PHP. They were using FastTemplate. The FastTemplate
website gave me the impression it was designed around php3 and maybe hasn't been updated in a while.

I also ran across patTemplate and Smarty.

Opinions?


Please look at the archives. The answer is totally disputed. For
example, see one of the previous discussions

<http://groups.google.com/groups?thre...wsreader.mailg
ate.org>
Also see:
1. http://www.phpbuilder.com/annotate/m...hp3?id=1013434
2. http://www.phpbuilder.com/annotate/m...hp3?id=1013711
3. http://www.phpbuilder.com/annotate/m...hp3?id=1013461
4. http://www.phppatterns.com/index.php...cleview/4/1/1/
5. http://www.massassi.com/php/articles/template_engines/
6. http://www.cs.usfca.edu/~parrt/papers/mvc.templates.pdf

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com


Very good reading there..

I agree, I write PHP using objects for everything. I don't think a template
engine will help you at all.

- Hayden
Jul 17 '05 #6
"Hayden Kirk" <sp**@spam.com> wrote in message news:<Wr*****************@news02.tsnz.net>...
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> wrote in message
news:ab**************************@posting.google.c om... <snip> Very good reading there..

I agree, I write PHP using objects for everything. I don't think a template
engine will help you at all.


Actually, when I was forced to use the phpBB like template, I was
searching for some rational explanations to prove that was messy to my
boss. I was stopped by those sites that reflected my own ideas about
the template engines. It is nice to see many people have same opinions
on this.

I too use a kind of template system---but is totally powered by
PHP;-) <http://groups.google.com/groups?selm=abc4d8b8.0402130547.2f09d2af%40posting .google.com>

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Andrea A | last post by:
Hi, i'm developing a website that will have an huge amount of visitors a day --> it will be a contest with 100.000$ of prize. I'm concerning about using a template class (and which one do you...
4
by: Berislav Lopac | last post by:
Does anyone know of a PHP template engine that uses XML-compliant syntax? I mean something along the line of having <template:variable name="myVar" /> instead of the usual {myVar}. Berislav ...
5
by: Miika Keskinen | last post by:
Hi all I was in need for a simple template engine (like PEAR::IT.php) and didn't find any suitable. Yes, there is many templating engines available but most are far too complex or does implement...
8
by: HchC | last post by:
PHP is already a HTML templating laguage, but I am looking for a HTML template engine for users who know nothing about HTML. This template engine should not be too complex, as this is for very...
2
by: Laurens | last post by:
Hi, Does anyone know a good template engine for generating text dynamically. (I.e. HTML, SQL statements, code generation, etc.) I'm looking for something similar to Velocity or Freemarker(both...
4
by: piotr | last post by:
Hi, I'm looking for a template engine that can give me names of required variables in parse time. Calculation of a value for a specific variable name could be possibly done in specified...
17
by: allen.fowler | last post by:
Hello, Can anyone recommend a simple python template engine for generating HTML that relies only on the Pyhon Core modules? No need for caching, template compilation, etc. Speed is not a...
0
by: Samuel | last post by:
Hi, Following the masses I was drawn to RoR's website today and I saw the following HTML template in one of the screencasts: ------ <body> <% form_remote_tag :url ={ :action =:search },...
14
by: Egbert Teeselink | last post by:
Hi all, The last few months I've worked on making a template engine because the ones out there didn't serve my needs. I guess everybody knows Smarty and has an opinion on it; I like many things...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.