kohana路由问题

WBOY
Release: 2016-06-23 14:22:04
Original
948 people have browsed it

如果我路由设置成这样:

Route::set('sections', '<directory>(/<controller>(/<action>(/<id>)))',    array(        'directory' => '(admin|affiliate)'    ))    ->defaults(array(        'controller' => 'index',        'action'     => 'index',    ));
Copy after login

在地址栏中我应该怎么输入才能访问


回复讨论(解决方案)

最好的方法是看手册,不懂英文也有中文的,再不懂我就没办法啦

哥们我也遇到同样的问题,这个手册上都没有写,只是教你路由怎么写,但是你写了路由,你那个url怎么写都没有说明,可能老外任务不用给样例url,但是我们刚刚接触这个框架哪里知道这个url怎么写啊

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template