php框架

 首页 > php框架 > CodeIgniter利用伪静态隐藏index.php

CodeIgniter利用伪静态隐藏index.php

分享到:
【字体:
导读:
          CodeIgniter要想实现这个功能,服务器必须支持伪静态。 新建一个.htaccess文件,内容如下: RewriteEngine on RewriteCond $1 !^(index\.php|robots\.txt) RewriteRule ^(.*)$ index.php/$1 [L]...

CodeIgniter要想实现这个功能,服务器必须支持伪静态。
新建一个.htaccess文件,内容如下:
 
RewriteEngine on
RewriteCond $1 !^(index.php|robots.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
 
分享到:
CodeIgniter框架分页类的使用
CodeIgniter框架分页类的使用,代码如下:   $this->load->helper('url');//载入url helper $this->load->library('pagination');//载入pagination $config['base_url']=site_url('index'); $config['uri_segment'] = 2;//地址栏中的第几个参数,默...
ci框架引入ueditor编辑器
  {literal} var ue = new UE.ui.Editor({initialFrameWidth:750,initialContent:'',imagePath:"/"}); ue.render('content')//渲染一个编辑器 {/literal}     添加商品品牌 添加商品品牌     ...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……