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 mainly introduces the complete implementation of database data acquisition in the CI framework Entry Example, including the complete process of configuration, table creation, and MVC implementation, if you need it, refer to the example in this article to describe the complete implementation of database data acquisition in the CI framework getting started example. It is intended for beginners. T
Beginner PHP To see someone write this, $CI = get_instance ();To access CodeIgniter's original resources in your custom class library, you must use the Get_instance () function. This function returns a CodeIgniter super object.In general, you can call any of the available CodeIgniter functions in your controller function by $this:$this->load->helper (' url ');$this->load->library (' Session ');$this->config->item (' Base_url ');etc.$this, it only work
Use the security class provided by CI to prevent cross-site requests from adding hidden fields to the form.
First we see the document: http://codeigniter.org.cn/user_guide/libraries/security.htmlThe last few lines are described as follows:Cross-site request forgery (Cross-site request forgery, CSRF)Open your application/config. php file and perform the following settings to enable csrf protection:PHP copy code $ config ['csrf _ protection '] = TRUE; c
In the ci paging class, how can I change the displayed number (previous page, next page, homepage, and last page) into an image display? Ci paging
In the ci paging class, how can I change the displayed number (previous page, next page, homepage, and last page) into an image display?
For example
Reply to discussion (solution)
Find the text and replace it with
CI (codeigniter) framework, routes. the php settings are correct, but the server error is displayed. it means _ construct writes less than one underline. today, I got a CI framework. after reading about the documentation, I feel that the CI framework is very streamlined, however, I encountered a problem when doing this. the C
Currently, the CI framework is available in version 2.0. I always wanted to try the core of my novel website.I searched my website in China and found no such information. As long as I look for e-wen's website, I still find it. After testing, it can be used normally, on a website called cool PHP tool. The author provides the configuration scheme and the configured files, but Xilin always fails according to his writing steps. Later, I carefully read the
Travis CI is a newly emerging open source continuous integration construction project, it and Jenkins,go is very obvious especially in the use of YAML format, concise and fresh unique. Most github projects are now moving into the Travis CI build queue, which is said to run more than 4,000 full builds per day for Travis Ci. For open source projects or users of Git
Beginner PHP To see someone write this, $CI = get_instance ();
To access CodeIgniter's original resources in your custom class library, you must use the Get_instance () function. This function returns a CodeIgniter super object.In general, you can call any of the available CodeIgniter functions in your controller function by $this:$this->load->helper (' url ');$this->load->library (' Session ');$this->config->item (' Base_url ');etc.$this, it only w
CI framework Source Code Reading Notes 8 Controller. php. CI framework Source Code Reading Notes 8 Controller. php recent time is a little tight, the source code reading series updates are somewhat slow. In view of the few codes in the Controller, this Blog first updates the source CI framework source code of this file. read note 8 Controller. php
The recent time
: This article mainly introduces the CI framework source code reading: Controller. php. if you are interested in the PHP Tutorial, please refer to it. CI framework source code reading: Controller. php
The recent time is a little tight, and the source code reading series updates are a little slow. In view of the few codes in the Controller, this Blog first updates the source code analysis of this file.
Aft
This article mainly introduced the CI Framework Common classic operation class, combined with the example form summarizes the CI frame URL, routing, pseudo-static, paging, session, verification code and other related operations and use skills, the need for friends can refer to the next
This paper summarizes the common classical operation classes of CI framework.
Who is the great God to give some advice?
The company intends to develop with CI and YAF
But want to take one as the main?
Reply to discussion (solution)
YAF needs to be compiled into extensions (unfortunately, the connection that currently provides YAF is inaccessible)Obviously has an impact on the sale of the productCI's development company has announced the cessation of the maintenance of CI, so
font-size: 14px;background-color: rgb(247, 252, 255);">The hook function of CI allows you to change or add core functions of the system without modifying the core files of the system.
font-size: 14px; background-color: rgb(247, 252, 255); ">For example, you can run a specific script or trigger your script at another time before the controller just loads or just loads.
font-size: 14px;background-color: rgb(247, 252, 255);">Look at the code:
Add a hook
The CI framework supports two implementations of $_get, Ci_get
In this paper, two implementation methods of CI framework support $_get are described. Share to everyone for your reference, as follows:
First the CI framework supports get after 2.0, so use no pressure!
1. Ways to pass parameters using get:
CI automatical
5: Implementing the Delete methodThe previous article I mentioned: in order to use "domestic", I put Linux on the construction and testing entrusted to the Daocloud, and Travis-ci can not be put. Fortunately, this cargo supports MacOS system. So just give it the CORECRM build and test task on MacOS.I think there have been a lot of writing in the country how to use Travis-ci blog article, I do not need to c
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.