CodeIgniter Forums
controller in side other controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: controller in side other controller (/thread-67832.html)



controller in side other controller - work.steve - 04-15-2017

Hi 

I have a problem, can`t find solve fot them.
I have controller, name: Logon, working good. I wont use same controller in side other controller, if I code $this->load->view('Logon') I can see my formbut his don`t working. I konow why, because this view load don`t call to controller 'Logon' and don`t call model 'Logon_model' 
How I can use this controller?
Sory for my Language ;{  but I need help ;]]  THX


RE: controller in side other controller - RBX - 04-15-2017

(04-15-2017, 07:11 AM)work.steve Wrote: Hi 

I have a problem, can`t find solve fot them.
I have controller, name: Logon, working good. I wont use same controller in side other controller, if I code $this->load->view('Logon') I can see my formbut his don`t working. I konow why, because this view load don`t call to controller 'Logon' and don`t call model 'Logon_model' 
How I can use this controller?
Sory for my Language ;{  but I need help ;]]  THX

Couldn't get much of what you want to say, but if you need to show your login form at 2 locations, just make sure action of the form in both places point to same location.