[eluser]Unknown[/eluser]
Hi all, excuseme if a make a mistake, because i don't speak english very well (sorry i am learning) this is my problem
Mi website have ( head, body (post &sidebar
and footer.
So, when i used any controller i load the next views
Code:
$this->load->view('head&body;');
$this->load->view('viewOfMyController');
$this->load->view('sidebar&footer;');
hear, i don't have any problem, but yesterday y make a controller for the administration of users, the name is 'User', so ,this controller have a view shows a form (if the user is not login) or a menu (is the user is login).
So, i need this controller always is in the sidebar, but i am not sure how i can do that, because, from the view i can't call a controller, and from other controller i can't call controller i try this
Code:
$this->load->view('head&body;');
$this->load->view('viewOfMyController');
$[color=red]this->load->controller('User');[/color]
$vform=$this->User->showForm();[color=gray]//in this part i return the view ($this->load->view('form',"",true);[/color]
$this->load->view('sidebar&footer;',$vform);
but as you know, i can't do this, $this->load->controller('User');
so, guya what i can do ? maybe i need make a library? i am not sure Thanks for your time, and excuseme for my mistakes