Welcome Guest, Not a member yet? Register   Sign In
Template Codeigniter
#2

[eluser]pickupman[/eluser]
I use a [url="http://getsparks.org/packages/template/versions/HEAD/show"]template library[/url] for generating the views. Yes, you are correct, you need to break your template into parts. On the parts of the template that will be on every page (header/footer + structure), keeps those in a view. Add in the variables for the content blocks/partials that will fill the template.

In your controller you would set the content for the variables in your template, then load the view of your template.


Messages In This Thread
Template Codeigniter - by El Forum - 12-07-2012, 01:40 AM
Template Codeigniter - by El Forum - 12-07-2012, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB