Jump to content

Using Template Engines


Lamez

Recommended Posts

I am a developer not a designer. Therefor I want to use a template engine in my new website (new as in revamped). Which one is the best? Do template engines come with different template I can download? Do I have to make my own? Are they hard to incorporate?  Is this the right board to post this in?

 

-Thanks! :)

Link to comment
https://forums.phpfreaks.com/topic/187579-using-template-engines/
Share on other sites

I am a developer not a designer. Therefor I want to use a template engine

 

Why? What benefit do you think using a template engine will provide? You still need to design your templates.

 

@thorpe

Thats what he was asking...

 

@Lamez

I haven't really used them but you do have to learn how to code for the framework you choose. Most people just use smarty but most template engines are designed to seperate your logic from your view (from what I can gather). You do have to design your templates, I would just use MVC to be honest.

MVC is a design pattern used to seperate your application into layers. The model layer is used to access data (database/ files/ feeds etc etc), the view layer is used to render your pages to html/xml/json etc etc and the controller layer is used to tie the other two layers together.

 

Most (if not all) php frameworks use this pattern extensively to build applications.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.