一. 新建HTML首先,笔者新建了一个文件,并且后缀命名成.html后缀。之后切换到英文输入法下,写一个感叹号!,如下图所示。 操作界面会弹出提示框,这个时候单机或者回车选中第一个感叹号!便会自动搭建框架,如下图所示 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
&l
最近在学习nginx服务器的一些基本知识了,下面就是我学习在MAC使用brew安装nginx+php+mysql环境的具体过程,文章是整理了大家的一些经验,希望对咱们有帮助。 这两天重新安装了下MAC系统下的nginx+php+mysql环境,今天整理一下安装步骤:1、安装 homebrewruby -e "$(curl -fsSL https://raw.github.co
项目使用框架为: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评论
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阅读
CodeIgniter在网上更受人欢迎,但是命名看上去比较奇怪,类名用下划线分割,函数名都是小写,感觉不是好。适合快速开发。cakephp 被说是模仿ruby,这关系不大。框架本身该有的功能都有,命名规则是驼峰命名法,文档清晰。觉得cakephp是把编程作为一种艺术性的东西来做,适合长期开发。
原创
2010-07-31 10:10:42
554阅读
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阅读
下载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
129阅读
CodeIgniter-Bootstrap结合了 cI和bootstrap的长处,一个专注于服务器端,一个专注于ui,这个把2个结合起来了。框架地址:http://www.andyhawthorne.co.uk/codeigniter-and-twitter-bootstrap/http://blog.stevenlu.com/2012/04/28/getting-started-with-codeigniter-bootstrap/
转载
2013-06-17 18:43:00
141阅读
2评论
A Comma separated values (CSV) file is a computer data file used for implementing the tried and true organizational tool, the Comma Separated List. The CSV file is used for the digital storage of data
原创
2009-12-29 07:17:17
95阅读
I wrote a codeigniter library through which you can retrieve the rss feeds from xml fileAdd the below code in Rss.php file and save the file in application library folder , <?php if ( !
原创
2009-12-29 07:12:09
33阅读