Welcome Guest, Not a member yet? Register   Sign In
Templating with Code Igniter
#2

[eluser]Sumon[/eluser]
I think there are one more way you can implement master page concept without CI template.
First of all lets consider a view file. It have header footer and body where body container varies for controller and functions. Now lets say we first assign body container value into a variable.
Code:
$data['main_container_view']=$this->load->view("member/registration_page");
now send this array to master template as
Code:
$this->load->view("masterpage/not_logged_in" , $data);
I hope it helps you to implement master page concept in CI.


Messages In This Thread
Templating with Code Igniter - by El Forum - 08-19-2008, 09:56 PM
Templating with Code Igniter - by El Forum - 08-19-2008, 11:32 PM
Templating with Code Igniter - by El Forum - 08-21-2008, 05:33 PM
Templating with Code Igniter - by El Forum - 08-22-2008, 07:47 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 07:56 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 08:01 AM
Templating with Code Igniter - by El Forum - 08-22-2008, 11:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB