How default is the default controller

Hello, all. I've been scouring these forums for some time to find the answer to my issue. I can't find it so I'm asking.

I have a controller called Main set as my default controller. When I'm at my sites index, the index of this controller gets called (that works). I thought that I could then call other methods from this default controller as well. For example, if I were to call it would call the page method of the Main controller.

Is this correct? I can only seem to get this by calling to whole thing ( ). This seems to defeat the purpose of being able to define a default controller.

I'm developing this on my iMac before uploading it to the server. I'm using MAMP to test it (it's like XAMPP).

Thanks in advance!


What it means by default controller, is the one that gets called if you don't specify one (aka no uri segments)
You can achevie what you want using routes (reroute page to go via main/page)

Thanks! It worked perfect!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.