// ./application/config/routes.php
$route['default_controller'] = 'welcome';
$route['(.*)'] = 'welcome/index/$1';
// ------------------------------------------------------------------------
class Welcome extends CI_Controller
{
/**
* index ()
* --------------------------------------------------------------------
*
* index - default method called.
*
*/
public function index($user = NULL)
{
if ( ! empty($user))
{
}
else
{
}
}
/**
* _remap()
* --------------------------------------------------------------------
*
* Remaps the URL segments.
*
* @param string
* @param array
* @return mixed
*/
public function _remap($method, $params = array())
{
if (method_exists($this, $method))
{
return call_user_func_array(array($this, $method), $params);
}
show_404();
}
}