Codeigniter路线['(:any)']不起作用

时间:2017-08-25 01:38:54

标签: php codeigniter

到目前为止

简单的控制器:

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.

0 个答案:

没有答案