codecamp

URL大小写

URL 大小写

建议 'url_case' => false,URL严格区分大小写

URL不区分大小写的配置

当进行如下配置时

    'url_case' => true,
    'url_case_separator' => '_',        //该项仅当'url_case' => true 时生效

我们可以通过以下两种URL来访问页面

 http://servername.com/Idea-framework/index.php/home/MyClass/sayHello
 http://servername.com/Idea-framework/index.php/home/my_class/say_hello

如果URL中不存在驼峰型参数时,可以实现URL不区分大小写

 http://servername.com/Idea-framework/index.php/home/My/say
 http://servername.com/Idea-framework/index.php/home/my/say
配置扩展
配置路由
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

控制器

附录

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }