Some time ago, I decided to slowly move onto some kind of framework. At first my glance fell on symfony, but then I switched to CodeIgniter.
The MVC model was new to me. Climbing on an Internet managed to find examples where the model sidelined, which is sad. Then a question arose with the design of the template.
It’s more usual for me to make a template like: ')
<?php include("_header.php"); .......... include("_footer.php"); ?>
In CodeIgniter, as I understand it, it is difficult to implement one template for everything and transfer data there. But having rummaged in a network, it was succeeded to find the solution which was offered by Alexander Makarov.
Or use this method: $data['header']=$this->load->view('header','',true); $data['menu']=$this->load->view('menu','',true); $this->load->view('content', $data);
Which one to choose? How much is the method proposed by Aleksandr Makarov acceptable? How is it organized with you?