Advertisement
Guest User

Load_ctrl.php

a guest
Apr 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. class Load_more extends CI_Controller {
  5.  
  6.  
  7.  
  8.     public function index()
  9.     {
  10.         $this->load->helper('url');
  11.         $this->load->view('load_more');
  12.     }
  13.  
  14.     public function getCountry()
  15.     {
  16.         $page =  $_GET['page'];
  17.         $this->load->model('load_more_model');
  18.         $no = 1;
  19.         $countries = $this->load_more_model->getCountry($page);
  20.         foreach($countries as $country){
  21.             echo "<tr><td>".$no++."</td><td>".$country->Name."</td><td>".$country->Region."</td></tr>";
  22.         }
  23.         exit;
  24.     }
  25.  
  26. }
  27.  
  28. /* End of file Load_more.php */
  29. /* Location: ./application/controllers/Load_more.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement