Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
yii框架中modules文件夹的默认路径是这样的
Yii project -> protected -> modules
但我需要将“模块”文件夹移到 Yii 项目之外,所以新路径应该是这样的
Yii project -> protected
modules(这个文件夹在 yii 项目之外)
modules
我怎样才能做到这一点?
你可以在你的 yii 配置文件中设置它,即:
// .... Other configuration options... // Set module path: 'modulePath' => 'some/path', 'modules' => array( // .... Your modules configuration )