Search
 
SCRIPT & CODE EXAMPLE
 

PHP

pagination in codeigniter with example

// Controller End
$config = array();
$config["base_url"] = base_url() . "index.php/StudentPagination_Controller/index";
$config["total_rows"] = $this->StudentPagination_Model->get_count();
$config["per_page"] = 10;
$config["uri_segment"] = 3;

$this->pagination->initialize($config);


$page = ($this->uri->segment(3))? $this->uri->segment(3) : 0;

$data["links"] = $this->pagination->create_links();

$data['student'] = $this->StudentPagination_Model->get_students($config["per_page"], $page);

$this->load->view('pagination', $data);
Comment

Codeingiter Pagination

$this->load->library('pagination');

$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = 200;
$config['per_page'] = 20;

$this->pagination->initialize($config);

echo $this->pagination->create_links();
Comment

PREVIOUS NEXT
Code Example
Php :: t variable error meaning in php 
Php :: The provided cwd "C:laravel projectseccomer/../public_html" 
Php :: phpunit 7 requirement php 
Php :: Laravel: validate an integer field that needs to be greater than another 
Php :: themeHeader 
Php :: atom emmet php 
Php :: Binance api buymarket php 
Php :: // Generates and prints 100 random number between 0.0 and 1.0 
Php :: laravel easy form 
Php :: laravel pagination prevent duplicate rows 
Php :: Unsupported type passed 
Php :: set owner symfony 
Php :: codeigniter query Profiling - To enable the profiler 
Php :: how to auto increment id after delete value in php mysql 
Php :: How to perform form inpot in laravel 8 and export database 
Php :: laravel gigapay resend invite to employee 
Php :: php convert html code to text 
Php :: supprimer un cookie avec un input en php 
Php :: learnpress wordpress plugin shortcode 
Php :: run drush command from php 
Php :: laravel create multiple rows 
Php :: wordpress wpdb delete 
Php :: ?? operator in php laravel 
Php :: random String Function PHP 
Php :: how to get the url parameter in blade laravel 
Php :: how to do taxonomy filter in wordpress 
Php :: php wordpress 
Php :: switch php version ubuntu 
Java :: how to check if player is in minecart using /execute 
Java :: circular imageview android 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =