Welcome Guest, Not a member yet? Register   Sign In
trouble with my controllers (basic stuff)
#1

[eluser]nemanjanq[/eluser]
Hi,

I have problem, with my controllers routing.

I have setup this:

config.php
Code:
$config['base_url']    = "http://localhost/project/";
$config['index_page'] = "index.php";

routes.php

Code:
$route['default_controller'] = "home";

and now ...

when I type in

http://localhost/project/ - WORKING goes to my home controller
http://localhost/project/home - NOT WORKING ?
http://localhost/project/home/index - NOT WORKING ?
http://localhost/project/admin/ - NOT WORKING ? (I have admin controller)

if I add index.php in links like

http://localhost/stampar_dev/index.php/home/index - WORKING.

I tryed http://ellislab.com/codeigniter/user-gui.../urls.html to

Removing the index.php file
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

when I do this all my links go back to http://localhost/ etc. my WAMP starting page.

help. Smile


Messages In This Thread
trouble with my controllers (basic stuff) - by El Forum - 07-12-2009, 01:07 PM
trouble with my controllers (basic stuff) - by El Forum - 07-12-2009, 02:12 PM
trouble with my controllers (basic stuff) - by El Forum - 07-12-2009, 02:25 PM
trouble with my controllers (basic stuff) - by El Forum - 07-12-2009, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB