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
I've tried several ways to do codeigniter templates and the way that I stay is the fastest and simplest, is as follows.
In controller:
//Charge the view inside array
$data['body'] = $this->load->view('pages/contact', '', true);
//charge the view "contact" in the other view template
$this->load->view('template', $data);
In view template.php:
Template codeigniter
=$body?>
Footer
$body is the view contact.