[eluser]php_princess[/eluser]
If I put any method in my News controller other than index(), the site won't find it through the URL. No other controller seems to have this problem. I'll demonstrate:
This is temp.php and it displays "got here" on the page when I go to "http://www.mydomainhere.com/temp/rate":
Code:
class Temp extends MY_Controller {
public function rate() { print "got here"; }
}
This is news.php and I get a 404 error when I go to "http://www.mydomainhere.com/news/rate":
Code:
class News extends MY_Controller {
public function rate() { print "got here"; }
public function index() { print "we're in index"; }
}
If I go to "http://www.mydomainhere.com/news" "we're in index" is displayed.
As a test, I changed News so it is extending CI_Controller directly. Nothing changed.
Any ideas on what could be going on?