Cannot Call Method of Default Controller |
[eluser]Unknown[/eluser]
I know that there is familiar problem like my http://ellislab.com/forums/viewthread/177251 But, please read it. I have default controller: Code: <?php My base url is "http://localhost/sch/". I can call the default controller by clicking this url base "http://localhost/sch/". My application/config/routes.php: Code: $route['default_controller'] = "main"; But i can't call the method login() of default controller by clicking this "http://localhost/sch/login" ! And my index page: Code: $config['index_page'] = 'index.php';
[eluser]PhilTem[/eluser]
You should not have 'index.php' in the route. The route is completely independent of using or not using 'index.php' as your index_page. So remove it and try it again.
[eluser]Unknown[/eluser]
I've changed route to: Code: $route['login'] = "main/login"; But probles still exist
[eluser]Otemu[/eluser]
Remove $route['login'] = "main/login"; Test like this http://localhost/index.php/sch/login Once you know that is working, your need to remove the index.php file by using .htaccess Here is a guide
|
Welcome Guest, Not a member yet? Register Sign In |