When the CI framework was first used, it was intended to write a series of CI-source reading notes, which, unfortunately, had not been acted on. Recently there are few projects, and finally there is some time to write something. Then prepare to record some of the previous notes and experience, on the one hand, the right to make a memo, on the other hand remind yourself: learn from learning and have a way ou
This article illustrates the complete implementation of database data for the introduction of CI Framework sample. is for beginners to see, this is the easiest to pass the example. Share to everyone for your reference. The implementation methods are as follows:
1. Download CI framework
2. Configure
database.php configuration:
To set the connection parameter for the database server:
Copy Code code
CI framework learning notes (2)-entry file index. php,
In the previous section (CI framework learning notes (I)-Environment installation, basic terms, and Framework processes), we mentioned the basic CI framework process. Here we will re-post a flowchart for your reference:
As the entry file of the CI framework, the so
CI Framework Source Reading Note 5 Benchmark test benchmark.php,cibenchmark.php
Previous blog (CI framework source reading Note 4 boot file codeigniter.php), we have seen: CI in the core process of the core functions are done by different components. These components are similar to a single module, different modules to complete different functions, the modules c
CI Framework Source Reading notes 6 extension hooks hook.php,cihook.php
The CI framework allows you to add or change the core functions of the system (such as rewriting the cache, output, etc.) without modifying the core code of the system. For example, when the system opens the hook (in config.php $config['enable_hooks'] = TRUE; ), by adding a specific hook, you can have the system trigger a specific scri
In this paper, the Smarty Steps of CI framework integration are described in detail. Share to everyone for your reference, specific as follows:
CI combined with smarty configuration steps:
1. The first step is to configure CI and download Smarty templates personally like to use this version (Smarty-3.1.8).
2. The second part of the download to the Smarty versi
'', `value` mediumtext NOT NULL, `group` varchar(55) NOT NULL DEFAULT 'site', `autoload` enum('no','yes') NOT NULL DEFAULT 'yes', PRIMARY KEY (`id`,`key`), KEY `name` (`key`), KEY `autoload` (`autoload`)) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
Then, create setting. php In the application/libraries directory. The content is as follows:
* */Public function item ($ key) {if (! $ Key) {return FALSE;} // first check whether the system has automatically loaded if (isset ($ this->
This article mainly introduces the CI framework integration Smarty method, compares and analyzes and improves the existing methods on the Internet, and introduces in detail the specific steps and related skills of CI framework inheriting the Smarty template, for more information about how to integrate Smarty with the CI framework, see the example in this article.
Brief introductionThis year if not a blog is embarrassed to others that you are a programmer, I use XX notes Ah, no? No, this thing can not be shared openly, or publicly share to members, now everywhere is open source, and learned that things can not be shared with people in need of help, it is really sad. So let's talk about it today. When you use Hexo to build a blog, how to automatically update it, we all know that Hexo is required to manually generate HTML static Web pages, although the comm
CI 2.2 + smarty 3.1.18 configuration succeededFirst, prepare the document download (CI framework and Smarty)Second, copy the Libs folder inside the Smarty-3.1.18 source package to the project directory of CI application under the Libraries folder and rename it to SmartyThird, application under the Libraries folder, create the file ci_smarty.phpPHPif(!defined(' Ba
Previous section (CI Framework learning Note (i)-environment installation, basic terminology, and framework process) we mentioned the basic process of the CI framework, where we post the flowchart again for reference:
As the CI framework of the entry file, source reading, naturally began. In the process of reading the source code, we will not explain it line by
Use CI. For routing convenience, 404 is configured with a CI code locally. the domain name is set to local. ci. as a result, except that the controller of the homepage autoload can be used, all other controllers are Error 404 !! Local. ci/index. php can run local. ci/index.
In the previous section (CI Framework Learning Notes (i)-environmental installation, basic terminology, and framework process), we mentioned the basic process of the CI framework, and here again the flowchart is posted for reference:
As a CI frame entry file, source code reading, naturally starting from this. In the process of reading the source code, we do not
1.library folder
If you want to extend the function of CI, then put your class library here, note that this folder is composed of class, you can see if loading the library notice!
2.helper folder
If you need to use a few functions to help you do some minor functions, then put it on, it's all procedural code instead of class, and the general Helper is for view,Use the following methods:
Copy Code code as follows:
$this->load->helper
I have studied the CI framework instruction documents and plan to use them in the next project. The basic configuration is very simple. It seems that the configuration is no easier than the ci framework ..
I have studied the CI framework instruction documents and plan to use them in the next project. The basic configuration is very simple. It seems that the confi
CI integrates Smarty and cismarty. CI integrates Smarty and cismarty1. download the smarty template to the corresponding site; 2. copy the libs directory in the source code to the libraries Directory of the project and change it to smarty3.03. integrate Smarty and cismarty in the libr CI of the Project directory
1. download the smarty template from the correspon
This article describes how to use the yii, CI, yaf framework + smarty template, and how to use the yii, CI, and yaf framework to integrate the smaryt template, it has some reference value. if you need it, you can refer to the example below to describe how to use yii, CI, yaf framework + smarty template. We will share this with you for your reference. The details
CI framework source code reading notes 5 BenchMark test BenchMark. php, cibenchmark. php
In the previous blog (CI framework Source Code Reading Note 4 guide file CodeIgniter. php), we have seen that the core functions of the CI process are completed by different components. These components are similar to a single module. Different modules implement different fun
It was a long time, but it was a perfect solution.The main front-end Nginx, the back end is Nginx.The front-end Nginx does not make the relevant URL permission restrictions, because all the URLs in the CI have to go through index.php redirection.And, in the back-end nginx limit, more than the front-end security.I am about to follow the following several routines, are back-end nginx operation, is not a strict step, to further investigation.1,real_ip_he
This article mainly introduces how to implement simple permission control through the hook method in the CI framework. if you need it, you can refer to the actual situation and need two files, one of which is the permission control class, acl. The other is the acl of the file configured with permissions. php is stored in the config directory.
The Acl class is stored in application/hook/acl. php. Use the application/config. php file to enable the hook
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.