Welcome Guest, Not a member yet? Register   Sign In
controller in subfolder admin
#1

[eluser]mardon[/eluser]
Hi,
I wrote my first application in CI on localhost a I have a problem in controller I have subfolder admin for admin script in which I have admin.php with method login in which I load login form

when I use http://localhost/application_folder/inde...min/login/ its OK

I add to routes
Code:
$route['admin'] = 'admin/admin';
then I think I may use

http://localhost/application_folder/admin/login for the same controoller but this route isn't function.

Whats the problem?
#2

[eluser]InsiteFX[/eluser]
Then you need to use an .htacess file to get rid of index.php this is all in the CodeIgniter User Guide.

InsiteFX
#3

[eluser]mardon[/eluser]
Oops, my mistake I dont know this, now is it OK

Thank you




Theme © iAndrew 2016 - Forum software by © MyBB