使用controllers子目录时默认页面处理
来源:互联网 发布:好吃的零食求推荐知乎 编辑:程序博客网 时间:2024/04/30 09:27
如我controllers有二个目录:a和b,且我不想把a或b的文件放到controllers/下面来;
尝试发现:
在routes.php的$route['default_controller'] = "a/init" + 使用index.php/b时它也显示成了index.php/a/init的内容;
如果controllers下面不放默认文件init.php时使用index.php的形式+$route['default_controller'] = "init"的设置又会出错,肯定找不到init.php;
郁闷,最后只能使用controllers/init.php写:include('a/init.php'); + $route['default_controller'] = "init"来解决这个问题;
- 使用controllers子目录时默认页面处理
- presentation Controllers的使用
- presentation Controllers的使用(二)
- 使用脚本遍历子目录
- 页面默认IE使用兼容模式
- 页面重定向----使用HttpModule实现多个域名分别“绑定”到子目录
- iis 下 部署 默认网站 子目录
- 使用Acrobat时,怎样使其默认页面显示方式为启用滚动
- 初次使用zend framework,如何使用多个controllers
- 加载页面时 lygrid 默认选中
- ios: push viewcontroller 时出现Presenting view controllers on detached view controllers is discouraged
- 谷歌下周起默认使用SSL加密搜索页面
- Magento 2 页面缓存和默认缓存中使用Redis
- 创建自定义 AngularJS 指令:Part 6 使用controllers
- 使用过滤器做页面静态化处理
- 在一般处理程序页面使用Session
- 正确使用spring boot默认的异常处理
- cas4.2.7定制登录页面样式(并且让页面默认使用中文提示)
- mysql 5.1 chm 优化摘选
- 浏览器的停止功能(esc键)与gif动画停止变换的关系
- CodeIgniter用后笔记1
- windows iis 安装php
- filezilla server ftp受到攻击处理
- 使用controllers子目录时默认页面处理
- iis的fastcgi路径
- 生成script标签
- 一个密码加密方案
- 使用windows的bat删除目录下所有的.svn文件夹
- 为每一个网站的文件夹建立一个index.html
- php的mysqli支持如果未启用,数据库设置使用mysqli时将造成页面空白
- $this->uri->segment(4, \'\')竟然没有解码还原
- 感觉table类有点那个了