multiple applications routing problem |
[eluser]Unknown[/eluser]
I have created two applications the frontend and the backend, the front end works perfectly but the backend doesn't... I copied the frontend folder and pasted it as backend, then I copied the index.php and pasted it in another folder 'admin/index.php', I changed the $system_folder = "../framework"; and $application_folder = "../applications/backend"; so it works with http://localhost/admin/... the problem starts here, when I try to create another controller apart from the default one... I created this controller in backend/controllers/forum.php: class Forum extends Controller { function Forum() { parent::Controller(); } function home() { $this->smarty->view('forum/home'); } } and I write in the backend/config/routes.php: $route['admin/forum'] = "forum/home"; so I expect this to work: http://localhost/admin/forum but it doesn't ... am I missing something? any ideas? it works if I write the full link http://localhost/admin/index.php/forum/home/index.php This is my .htaccess: # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteCond $1 !^(index\.php|robots\.txt|skins) RewriteRule ^(.*)$ /index.php/$1 [L] Thanks! |
Messages In This Thread |
multiple applications routing problem - by El Forum - 02-22-2010, 10:28 AM
|