在Yii下进行模块化(module)编程以及出现Unable to resolve the request的解决办法
来源:互联网 发布:java接口和类的区别 编辑:程序博客网 时间:2024/05/16 19:41
在Yii下进行模块化(module)编程以及出现Unable to resolve the request的解决办法
环境:NetBeans IDE ,wampserver
数据库:MySQL
以生成一个shop模块为例
【1】在工程中使用Gii生成模块文件夹modules (参考Yii通过Gii实现CRUD与生成Module)
【2】在protected/config文件夹下的main.php增加模块(重点注意)
如果没有在main.php下添加相应的模块,会出现错误提示" Unable to resolve the request "shop/shop/index" "
【3】在protected/views/layouts/main.php的链接访问,需要设置地址为
array('label'=>'Shop','url'=>array('/shop/shop/index'))
0 0
- 在Yii下进行模块化(module)编程以及出现Unable to resolve the request的解决办法
- YII设置别名 'Unable to resolve the request "site/error".'
- unable to resolve module
- ubuntu 系统出现unable to resolve hostXXX问题的解决办法
- [android] 出现 Unable to resolve target 'android-7'的解决办法
- Android之在eclipse编译项目出现unable to resolve target android-20解决办法
- Responses to "error: unable to resolve ' ' for transcoding的解决办法
- Linux下SUDO出现Unable to resolve host XXX解决方法
- Ubuntu环境下sudo出现unable to resolve host 解决方法
- Unable to resolve module `react/lib/ReactComponentWithPureRenderMixin`
- 导入android项目出现:出现Unable to resolve target 'android-8'错误及其他的一些解决办法
- Unable to resolve target 'android-x'的解决办法
- Unable to resolve target 'android-14' 的解决办法
- YII框架中表单验证出现Bad Request (#400)---Unable to verify your data submission的错误解决方法
- 关于Eclipse出现unable to resolve superclass错误的问题
- sudo出现 unable to resolve host xxxx的解决方法
- Ubuntu下jmap以及jinfo出现Can't attach to the process问题的解决办法
- 关于搭载新版本SDK后,导入以前的工程出现Unable to resolve target 'android-6'的解决办法
- Android实例demo21之json数据封装,服务器json数据接收
- Ubuntu知识点积累2
- 全球最大的问答网站之一,Stack Exchange如何养成
- nui常用表单
- unity开发之接入苹果官方iap-补充(六)
- 在Yii下进行模块化(module)编程以及出现Unable to resolve the request的解决办法
- 【Rayeager PX2分享】编译源代码安装OpenCV
- Android Activity的四种加载模式
- Logistic回归
- Org-mode简明手册
- svn服务器搭建
- Python Intro - Parse Command Line Parameters
- LeetCode 097 Interleaving String
- C++ 命名空间namespace