Download and install the CodeIgniter framework. Download and install the CodeIgniter framework. codeigniter framework CodeIgniter is an application development framework and toolkit for PHP website developers. After learning Php for the first time,
CodeIgniter is a set of application development frameworks and toolkits that are used by developers of PHP Web sites. The first time to learn PHP, online search a lot of PHP framework, and finally chose CodeIgniter. The following is the introduction
The last few days decided to look at the CI Framework source code, because it is lightweight, the structure of the code file is clearer, and index.php as a portal, loading all the base classes in the codeigniter.php file, so I looked at each class
CI framework source code reading Note 4 guide file CodeIgniter. php is here, and finally enters the core of the CI framework. Since it is a "pilot" file, it is to guide user requests, parameters, and so on, so that user requests and data streams are
Interface Requirements:
Output JSON
Single Entry
Security http://segmentfault.com/q/1010000000143852 based on token verification? Session
Cache
Session Cookie
Database
Configuration
Log
Public Folder
My framework:index.
This chapter describes how CI helps you test the code. Testing is the heart of an application. We use it to test other remote applications. we also want to test ourselves because it is also code. CI makes testing easy. Use CI test code
This chapter
Improvement of PHP code quality 36 1. do not use relative paths
We often see:
require_once('../../lib/some_class.php');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds the current directory.
It is very easy to teach to improve the quality of php code by 36. 1. do not use relative paths. you will often see: require_once (... libsome_class.php). This method has many disadvantages: it first looks for the specified php inclusion path and
1. Do not use relative pathsWe often see:
Require_once ('../lib/some_class.php ');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds the current directory.
Therefore, excessive paths are
Php code quality is greatly improved. For more information, see
1. do not use relative pathsWe often see:
Require_once ('../lib/some_class.php ');
This method has many disadvantages:
It first looks for the specified php inclusion path and then finds
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.