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
There is a library which allows you to use templates in CodeIgniter in a native style. To load a template/theme just do:
$this->load->theme(‘theme_name’);
To load CSS and javascript files from your views you can do:
$this->load->css(‘path/file.css’);
$this->load->js(‘path/file.js’);
You can optionally control the way browsers cache CSS & JS files.