Welcome Guest, Not a member yet? Register   Sign In
how to use subcontroller
#1

[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="&lt;?=base_url()?&gt;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="&lt;?=base_url()?&gt;usa/losAngles/hollywood.html">travelmartbd.com</a>// is it corret?
#2

[eluser]ranjitbd[/eluser]
//following is a function call where losAngles is the controller hollywood is the method name

Code:
<a href="&lt;?=base_url()?&gt;losAngles/hollywood.html">travelmartbd.com</a>

//if i create a folder in controller name usa and losAngles.php is inside the usa folder and hollywood is the method name
//then what will be the code

<a href="&lt;?=base_url()?&gt;usa/losAngles/hollywood.html">travelmartbd.com</a>

// is it correct?
#3

[eluser]Clooner[/eluser]
Try it out and you will know if it is correct.




Theme © iAndrew 2016 - Forum software by © MyBB