项目使用框架为:CodeIgniter原本项目环境使用的是php5.6,在安装了php7后,项目的session失效了,检查原因,发现该框架的Libraries/Session/Session.php中的129行左右是这样写的:<?php
if (isset($_COOKIE[$this->_config['cookie_name']]) && (! is_string
转载
2023-05-25 11:07:30
128阅读
If you have problem using PHP unlink() function in CodeIgniter, I have a solution to it.
Below is the error you would most likely encounter:
A PHP Error was encountered Severity: Warning M
转载
精选
2009-11-17 11:50:41
1086阅读
CodeIgniter建立的项目是流行的MVC结构,路径访问是controller组合action。$_GET, $_POST, $_COOKIE可以加载相应函数访问,而不直接访问,增加安全。连接mysql数据库用mysql_connect这样的连接显示层模板为直接写php代码。配置也可以用load的方式加载。
原创
2010-06-10 22:49:56
775阅读
默认情况下,CodeIgniter 中的 URL 被设计成对搜索引擎和人类友好。不同于使用标准“查询字符串”方法的是,CodeIgniter 使用基于段的方法:example.com/news/article/my_article注意:查询字符串形式的 URL 是可选的,分述如下。
转载
2013-06-07 17:17:00
130阅读
2评论
CodeIgniter在网上更受人欢迎,但是命名看上去比较奇怪,类名用下划线分割,函数名都是小写,感觉不是好。适合快速开发。cakephp 被说是模仿ruby,这关系不大。框架本身该有的功能都有,命名规则是驼峰命名法,文档清晰。觉得cakephp是把编程作为一种艺术性的东西来做,适合长期开发。
原创
2010-07-31 10:10:42
554阅读
PHP 论坛:http://codeigniter.org.cn/forums/forum-opensource-1.html下载 CodeIgniter 项目 的最新软件包(http://www.codeigniter.com/)。阅读 在线 CodeIgniter 文档。(http://www....
原创
2023-11-06 16:04:15
58阅读
PDF files rock! Some of the programs used to view them could use somile format itself is real handy. As a programmer I have found PDF’s to be most helpful when generating reports th...
原创
2023-07-24 15:30:37
96阅读
CodeIgniter是一款很优秀的轻量级MVC框架,而Smarty是目前最流行的php模板框架。两者配合起来使用,加快开发效率。 第一步:安装CodeIgniter点击立即下载最新版本的Zip包>>解压后,复制文件夹下面的application、system、index.php至项目根目录中 第二步:安装Smarty点击下载最新的Zip包>>在Code
转载
精选
2013-07-08 15:37:03
637阅读
共函数位于 system/core/Common.php 文件中,大家可以在这里定义自己的公共函数。 CodeIgniter 使用了一些全局定义的函数来完成操作,在任何情况下你都能够使用这些函数。使用他们不需要载入任何类库或辅助函数。is_php('version_number')is_php() 判断正在使用的PHP的版本号是否高于你所提供的 version_number 。if (is_p
转载
2013-06-09 12:51:00
130阅读
2评论
Excel Plugin The following plugin will generate a tab-delimited file, and feed it to the client as an Excel file. $this->load->plugin('to_excel');$this->db->use_t...
转载
2023-04-28 11:38:35
89阅读
Using CKEditor as a plugin in your CodeIgniter applicationsCKEditor is a powerfull WYSIWYG text editor licensed under the GPL, LGPL and MPL open source licenses. CKEditor can easilly be added to any w
转载
2023-05-12 11:51:39
125阅读
This Simplexml class provides an alternative implementati
原创
2023-07-24 15:32:40
91阅读
1 缓存
/system/cache目录清空,设置权限为666,
$this->output->cache(5);
5是你想要你的缓存持续的分钟数,即在页面被重新生成前会持续多长时间使用静态HTML文件。
2 文件辅助函数
this->load->helper('file');
r”为读,&ldqu
转载
精选
2012-08-30 10:46:36
596阅读
1、下载CKEditor和CFinder
CKEditor下载地址:http://ckeditor.com/download
CKFinder下载地址:http://ckfinder.com/download
2、解压安装
将CKEditor解压之后,将其中的ckeditor放到网站根目录下
将CKFinder解压之后,将其中的CKFinder放到网站根目录下
3、修改ckfinder
转载
精选
2012-11-05 15:41:04
1308阅读
function Paypal()
{
parent::Controller();
$this->load->library('paypal_lib');
}
function index()
{
$this->form();
}
转载
2023-05-12 10:09:28
61阅读
codeigniter 学习1
1 ci中的library和helper,经验要调用的,传统的做法是如下:、
$this->load->library('pagination');
$this->load->helper('form');
但经常这样十分麻烦,
原创
2022-12-02 10:59:21
79阅读
CodeIgniter 安装分为四个步骤:解压缩安装包。把 CodeIgniter 文件夹和里面的文件上传到你的服务器。通常 index.php 在根目录。·
原创
2021-07-17 16:53:22
527阅读
下载CodeIgniter1.7并解压缩后,将index.php和system目录拷贝到web服务器的根目录下,这样就完成了CodeIgniter的安装。
安装完后可以看下system目录下的结构。Application是你自己项目存放文件的目录(简单来说,控制器,模型和视图都在这里)。System目录下
原创
2011-02-11 11:14:00
384阅读
官方手册中的session 竟然是cookie.. 一直都没注意
原创
2013-11-28 19:03:22
385阅读
下载CodeIgniter1.7并解压缩后,将index.php和system目录拷贝到web服务器的根目录下,这样就完成了CodeIgniter的安装。 安装完后可以看下system目录下的结构。Application是你自己项目存放文件的目录(简单来说,控制器,模型和视图都在这里)。System目录下其他文件夹是CodeIgniter自身的代码,比较常用的有libraries等。 要建立一个网站,一些常用的配置是首先需要做的.config文件夹中包含了一些为网站设定基本配置的文件,打开 config.php,可以看到有许多配置项,例如 $config['base_url'
原创
2021-08-05 14:35:36
133阅读