Tuesday 7 July 2015

Codeigniter

Codeigniter

Controller

public function __construct(){
    
     parent::__construct();
   
     $this->load->model('admin_model');
     $this->class = strtolower(__CLASS__);
     $this->page_limit = 20;                        // Setting the number of records per page for Pagination
     $this->load->helper(array('url','form'));
     $this->load->library(array('form_validation','session','parser','pagination'));
   
      $this->load->library("excel");
   
   }


Model:

class Agent_model extends CI_Model{
  
       public function __construct(){
        
         $this->load->database();
       }
}

No comments:

Post a Comment