Welcome Guest, Not a member yet? Register   Sign In
View files or template
#1

[eluser]JanDoToDo[/eluser]
Hi guys,

Ive just started using CI and have so far been using view files, and just loading a different view file for each of the pages i have, e.g.
$page_body = "/home_page" and then this is loaded through the main page_structure.php file (which contains the code which echo's $page_body for example.

Im wondering what the advantages of using a template system/parser is? It kind of seems like (from what i have briefly read) that it just adds another step. As I have a main view file which then echos the sub regions it seems like this is all a template parser does, with a main template which contains regions.

Could someone explain the principal of it and why its better, and whether i should be using it, and any literature?

Many thanks! Smile


Messages In This Thread
View files or template - by El Forum - 01-01-2010, 06:19 PM
View files or template - by El Forum - 01-01-2010, 07:03 PM
View files or template - by El Forum - 01-01-2010, 11:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB