Advertisement
mahdidham

codeigniter-controller

Jan 4th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. <?Php
  2. //birds.php
  3. class Birds extends CI_Controller{
  4.   function index(){
  5.     $this->load->view('birds_view');
  6.   }
  7.  
  8.   function get_birds(){
  9.     $this->load->model('birds_model');
  10.     if (isset($_GET['term'])){
  11.       $q = strtolower($_GET['term']);
  12.       $this->birds_model->get_bird($q);
  13.     }
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement