• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controller Function Not Being Called

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

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?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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