In my routes.php I have :
$route['default_controller'] = "bitcoin";
and in my config.php I have:
$config['base_url'] = 'http://localhost/bitcoin/';
$config['index_page'] = 'index.php';
here is my controller: http://www.pastie.org/2253458
When I try to go to the following, I get a 404 not found (but the 404 template looks different):
http://localhost/bitcoin/edit/
http://localhost/bitcoin/index.php/edit
You didn’t say if you’ve removed or not your index with .htaccess, but if you didn’t, did you try using:
http://localhost/index.php/bitcoin?Or better, since it’s your default controller, just
http://localhost?What you’re doing is quite strange, I can’t understand if you’re in a subfolder called bitcoin (in case, it should be
http://localhost/bitcoin/to call the default controller, which is also called bitcoin but doesn’t need to be indicated in your URL).If you’re in root, You should rewrite your urls as:
http://localhost/index.php/bitcoin/editto call theedit()method of your default controllerEdit:
If you’re in a subfolder called bitcoin, your base url, with default controller, should be:
http://localhost/bitcoin/(which is the same ashttp://localhost/bitcoin/index.php/bitcoin)If you want to get the bitcoin method edit(), should be
http://localhost/bitcoin/index.php/bitcoin/editAlso, try removing your .htaccess AT ALL and see what happens.
Edit2
Oh, one last thing: use CI_Controller and not CI_controller, if you’re on a OS where lowercase matters you might encounter some problems