Welcome Guest, Not a member yet? Register   Sign In
Making default controller on admin side
#1

[eluser]Computerzworld[/eluser]
Hello,
I am having controllers for user side as well as admin side. User side controllers are in controllers folder & admin side controllers are in controllers/admin/ folder. Now what I want is to make my admin side controller as default controller. And it will be loaded as soon as I will type something like http://domain/admin. Then it will be redirected to the default controller resides into admin. So, what should be done in order to make admin side controller a default controller? Please help me. Thanks in advance.
#2

[eluser]Computerzworld[/eluser]
I got it Smile.

Here is what I had done.

In the routes.php

Code:
$route['admin'] = 'admin/login';

And it will redirect always to http://domain/admin/login if I will type http://domain/admin.

HTH....




Theme © iAndrew 2016 - Forum software by © MyBB