I\'m fairly new to MVC, and I\'ve found CodeIgniter recently. I\'m still learning everyday, but one problem is its template engine. What is the best way to create templates
Allow me propose an easier way to do this. Consider my answer to a similar question.
Pros:
Cons:
1. You may have to add a template
(or layout
—if you want to do it the Rails way) directory under views in order to structure your code properly. This follows from Pros[2].
2. Data for the specific view from the controller must first of all be passed to the template.