Hi all,
I just moving my first steps with Code Igniter, so please bear with me.
I have a application/controller/login.php file containing the following
class Login extends Controller {
function Login()
{
parent::Controller();
}
function index()
{
$this->mysmarty->assign('title', 'Login');
$this->mysmarty->assign('site_media', $this->config->item('site_media'));
$this->mysmarty->display('smarty.tpl');
}
}
My routes definition looks like the following:
$route['default_controller'] = "welcome";
$route['login'] = 'login';
$route['scaffolding_trigger'] = "";
The problem is that i keep getting a 404 when i try to access http://localhost/myapp/login. What did i do wrong? I've checked CI routes docs and cannot spot anything.
Thanks