We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yaf版本2.2.9
$conf = array( 'application'=> array( 'directory'=> APP_PATH.'/application/', 'modules' => 'Index,Test', ), ); $app = new Yaf\Application($conf); var_dump($app->getModules());
结果输出还是array(1) { [0]=> string(5) "Index" }
The text was updated successfully, but these errors were encountered:
并且不管使用哪一种路由,总是路由到默认模块,比如在bootstrap.php文件中加入:
$route = new Yaf\Route\Simple('m', 'c', 'a'); $router->addRoute("name", $route);
然后url是index.php?m=test&c=index&a=index,但是显示的却是默认模块的IndexController。
文件夹目录如下:
application ├── Bootstrap.php ├── controllers │ ├── Error.php │ └── Index.php ├── modules │ └── Test │ ├── Bootstrap.php │ └── controllers │ └── index.php .....其他文件夹
Sorry, something went wrong.
操作失误,与YAF无关,close
我也遇到一样的问题,你是如何解决的,是哪里配置不对吗?
No branches or pull requests
yaf版本2.2.9
结果输出还是array(1) { [0]=> string(5) "Index" }
The text was updated successfully, but these errors were encountered: