Summary of common methods of CI framework, summary of CI framework
The examples in this paper describe the common methods of CI framework. Share to everyone for your reference, as follows:
First, in the template file loading css, JS file:
Second, load the child template file in the template file:
<?php $this->load->view (' admin_head.php ');? ><?php $this->load->view (' admin_foot.php ');? >
Third, the template file can directly use the function call data
Iv. calling CI objects in the model
$CI =& get_instance (); $CI->load->model (' Data_model ');
More interested in CodeIgniter related content readers can view this site topic: "CodeIgniter Introductory Tutorial", "CI (codeigniter) Framework Advanced Tutorial", "PHP Excellent Development Framework Summary", "thinkphp Getting Started", " Summary of common methods of thinkphp, "Introduction to Zend Framework Frame", "Introduction to PHP Object-oriented Programming", "Introduction to Php+mysql Database Operation" and "PHP common database Operation Skills Summary"
It is hoped that this article is helpful to the PHP program design based on CodeIgniter framework.
http://www.bkjia.com/PHPjc/1127868.html www.bkjia.com true http://www.bkjia.com/PHPjc/1127868.html techarticle CI Framework Common methods Summary, CI Framework Summary This paper describes the common methods of CI framework. Share to everyone for reference, as follows: First, in the template file loading CSS, js file ...