Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class Load_more extends CI_Controller {
- public function index()
- {
- $this->load->helper('url');
- $this->load->view('load_more');
- }
- public function getCountry()
- {
- $page = $_GET['page'];
- $this->load->model('load_more_model');
- $no = 1;
- $countries = $this->load_more_model->getCountry($page);
- foreach($countries as $country){
- echo "<tr><td>".$no++."</td><td>".$country->Name."</td><td>".$country->Region."</td></tr>";
- }
- exit;
- }
- }
- /* End of file Load_more.php */
- /* Location: ./application/controllers/Load_more.php */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement