CodeIgniter Forums

Full Version: Controller Function Not Being Called
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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 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:
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!

El Forum

do you test with 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?