CodeIgniter Forums
Controller Function Not Being Called - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Controller Function Not Being Called (/thread-11622.html)



Controller Function Not Being Called - El Forum - 09-16-2008

[eluser]ChangedNames[/eluser]
Hey everyone

I'm calling a function in my controller like I would any other time but it doesn't seem to be working. I'm browsing to mysite.com/index.php/controller/function and it's redirecting me to another function within that controller. I have it setup to redirect to this function if certain criteria are met within OTHER functions. However, that is not being done in the function I'm trying to run. I even tried making the function nothing but this:
Code:
function test() {
   echo "Hi";
}
and it still redirected me to the other function. I can't figure out what's going on here. Any suggestions for what to look for? I can add the entire controller code if necessary.

Thanks for any help!


Controller Function Not Being Called - El Forum - 09-16-2008

[eluser]Sumon[/eluser]
do you test with mysite.com/index.php/controller/test and it redirects to another function? would you please paste your controller code here. hope you dont have any redirection in controller constructor.
Are you using routing?