how to use subcontroller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: how to use subcontroller (/showthread.php?tid=22084) |
how to use subcontroller - El Forum - 08-29-2009 [eluser]ranjitbd[/eluser] //we can create folder in views and accees them thorough $this->load->view('tmbd/contact_us') //like that //following is a function call where losAngles is the controller hollywood is the method name <a href="<?=base_url()?>losAngles/hollywood.html">travelmartbd.com</a> //if i create a folder in controller name usa and losAngles is inside the usa folder then what will be the code <a href="<?=base_url()?>usa/losAngles/hollywood.html">travelmartbd.com</a>// is it corret? how to use subcontroller - El Forum - 08-31-2009 [eluser]ranjitbd[/eluser] //following is a function call where losAngles is the controller hollywood is the method name Code: <a href="<?=base_url()?>losAngles/hollywood.html">travelmartbd.com</a> // is it correct? how to use subcontroller - El Forum - 08-31-2009 [eluser]Clooner[/eluser] Try it out and you will know if it is correct. |