0
我想要路由到多個操作,我在application.ini文件上進行路由配置。路由到多個操作
resources.router.routes.blog.route = /blogs
resources.router.routes.blog.defaults.module = blogs
resources.router.routes.blog.defaults.controller = blog
resources.router.routes.blog.defaults.action = index
resources.router.routes.blog.route = /blogs/add
resources.router.routes.blog.defaults.module = blogs
resources.router.routes.blog.defaults.controller = blog
resources.router.routes.blog.defaults.action = add
當我做出這樣的,默認的路由/博客返回錯誤
Message: Invalid controller specified (index)
array (
'module' => 'blogs',
'controller' => 'index',
'action' => 'index',
)