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
CI framework Source Code Reading Notes 2 all entries index. php, ciindex. php
In the previous section (CI framework Source Code Reading Note 1-Environment preparation, basic terms, and Framework processes), we mentioned the basic process of the CI framework. Here we will paste a flowchart for your reference:
As the entry file of the
This is a creation in
Article, where the information may have evolved or changed.
"Editor's word" Jenkins, as the most popular continuous integration tool, in combination with the use of container technology, kubernetes cluster based on how to play a new capacity, in the application of micro-service based on the provision of better CI way, it is worth each of our developers to continue to explore. This share mainly introduces how we use Jenkins Pipeli
CI framework Source Code Reading Notes 2 all entries index. php. CI framework Source Code Reading Notes 2 all entries index. in the previous section of php (CI framework source code reading Note 1-environment preparation, basic terms, and framework processes, we mentioned the basic stream CI framework of the
Output Class Reference description (Excerpt CI manual):In general, you may not notice the output class at all, because it is completely transparent to you without your intervention. For example, when you use the loader to load a view file, it is automatically passed in to the output class and is automatically called by CodeIgniter at the end of the system execution. Still, you can handle the output manually when you need it.say a few knowledge points
MyEclipse CI as a popular javaide development tool, it has a lot of useful features for our development to provide help. But when we have a lot of projects in our workspace, it's a headache to manage.But we don't want to change the working range, so we need a more effective approach to project management.1. Open myeclipse, you can see the small triangle symbol shown, click Open.2. The popup interface, there is a select Working Set option. Click on Sel
Apache Remove index.php1. Edit the conf/httpd.conf configuration file#LoadModule rewrite_module modules/mod_rewrite.so to remove the # before the lineAlso configure allowoverride all under directory2. Under the CI root directory (that is, under Index.php,system's sibling directory), create a new configuration file named:. htaccess content as follows:Rewriteengine onRewritecond%{request_filename}!-fRewritecond%{request_filename}!-dRewritecond $!^ (inde
This example describes the CI framework file upload class and image processing class usage. Share to everyone for your reference, specific as follows:
List page banner picture public function Edit_list_page_banner ($category _id= "") {$category _id= empty ($category _id)? $_post["
category_id "]: $category _id; Upload picture if (isset ($_post["key")) $_post["key"] = = "Upload") {/* 1.set_upload_path * * $config [' Uploa D_path ']= './upload/
access to search results, or just declare them. New support for formatting selected JavaScript blocks instead of formatting the entire file. Fixed several bugs for Outline and Quick Outline views. Outline view can follow the code display normally and can be quickly navigated by quick Outline. Fixes some bugs in call Hierarchy view to better handle more advanced JavaScript code. Jsdebugger-source maps works well when debugging a Node.js 6.x application.
Terminal, Snippets View and Docker Comm
The use of CI frameworks often encounters jumps and path problems, Site_url () and Base_url () are easy to confuse, and here's the difference!
If the Base_url and index_page in your config file are defined in this way:
config[' base_url ' = "http://domain.com/";
config[' index_page ' = "index.php";
Then if you use Site_url ("NEWS/PHP/2"), the actual URL is
Http://domain.com/index.php/news/php/2
If you use Base_url ("NEWS/PHP/2"), the URL is:
Ht
In the integration of HTML page inside the CI frame, loading css and JS failed, get a long time to find the CI framework is the framework of the portal, all the files in the framework of the request need to go through index.php processing, when loading external CSS and JS file to use the Base_ The URL () function handles external links.
Like what:
The base_url in the Config profile is: "localhost:8080/P
When the HTML page is integrated into the CI frame, loading css and JS fails, and I find that the CI framework is the portal framework,
All requests for files in the framework need to be processed by index.php, and when loading external CSS and JS files, make
Use the Base_url () function to handle external links.
Like what:
The base_url in the Config profile is: "localhost:8080/Project name/"
accessing
The examples in this article describe the common function encapsulation of the CI framework. Share to everyone for your reference, specific as follows:
/** * Package Query Function/Public function get_what ($table = ', $where =array (), $fields = ' * ') {if ("= = $table)" {return
False
//query and return related results $query = $this->db->select ($fields)->where ($where)->get ($table);
$res = $query->result_array ();
return $res; /*
The examples in this article describe the operational steps and methods for the CI framework's dependent packages that are installed using composer. Share to everyone for your reference, specific as follows:
This article for Linux Systems, Windows first step according to the composer official website to install the following steps are the same
Step 1 Global installation composer
$ CURL-SS Https://getcomposer.org/installer | PHP
$ mv Composer
CodeIgniter is a small but powerful PHP framework that can be used as a simple and "elegant" toolkit to build a full-featured WEB application for developers. is a more mainstream PHP framework.
Here is a description of the CI framework (Ajax paging, select all, reverse, not select, bulk Delete) complete code, the specific code is as follows:
Ajax Paging + search (view layer) function Ajax_page (page) {var sou = $ (' #sou '). Val (); $.ajax ({typ
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
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.