简单的控制器:
class Login extends CI_Controller {
public function index()
{
echo 'Hello';
}
}
路线:
$route['(:any)'] = 'login/index';
根据我的理解,输入到地址栏的任何内容都会使用索引方法路由到Login
控制器?我能正确理解吗?
结果:Unable to determine what should be displayed. A default route has not been specified in the routing file.