Forum Moderators: coopster

Message Too Old, No Replies

Smarty

Is it worth it?

         

one_mind

4:13 am on Jul 20, 2006 (gmt 0)

10+ Year Member



Hi,

I have been gettng curious about the smarty template engine. Does anyone here use it and why?

Also, does the web host server need to have smarty installed in order to run it, how does that side of things run?

Thanks for any info

jatar_k

5:16 am on Jul 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe try this search [google.com] ;)

Sekka

7:11 am on Jul 20, 2006 (gmt 0)

10+ Year Member



Personally, I use templating. It mates it a lot easier to develop a website. Obviously, certain parts can't be templated, e.g. a complex menu, but for the general page layout it is worth it.

I don't use Smarty as I generally tend not to use 3rd party codes as a rule, but I use my own code that acts in pretty much the same way.

henry0

12:45 pm on Jul 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I second Sekka, if you do your own you will know how it works :)
Templating is not that tough and much more fun when OOP.

There are many good tutorials (G for PHP templates)
Try them you will learn tons of good coding practice.

Smarty is very much praised and many sites use it
If you decide to give it a go you need to be prepared for some learning.

By the way in an earlier thread I mentioned a book
about dev with Smarty. Sorry cannot remember its title but I am sure you will find it on Smarty's site.

one_mind

2:09 pm on Jul 20, 2006 (gmt 0)

10+ Year Member



Thanks guys,

At present i just write my main layout code then include("") it into every page. Sometimes it is split into header, main and footer sections ect.

I think i might just keep doing it this way, its easy enough as it is.

Cheers

Sekka

5:42 pm on Jul 20, 2006 (gmt 0)

10+ Year Member



I started off with PHP doing that last year. I program using OOP and templating now. Just takes time to get your head around. :)

jatar_k

6:54 pm on Jul 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



sounds good one_mind

this thread may offer some extra insight (or not)
A Dynamic Site in 2 minutes [webmasterworld.com]