Is there an alternative to Paging without making my client download ALL the 
data? Because currently how it works is it downloads everything on server 
but i wanna limit how much through paging, Even if i use javascript to do 
paging , will it prevent the client from downloading EVERYTHING? PS. my php 
code pushes everything out

On Sunday, 14 October 2012 10:58:42 UTC+8, Jonathan Toh wrote:
>
> The table at my home isnt built to do paging but other pages are, i got 
> the following code from another controller, not the HOme page controller
> //Pagination
> $this->load->library('pagination');
> $config['base_url'] = site_url('project/category/'.$category_name);
> $config['total_rows'] = $projects->num_rows(); 
> $config['per_page'] = $page_rows; 
> $config['cur_page'] = $page;
> $this->outputData['page'] =  $page;
> $this->pagination->initialize($config); 
> $this->outputData['pagination']   = 
> $this->pagination->create_links(false,'project');
>     $this->load->view('project/listProjects',$this->outputData);
>
> I'm thinking if i place this code in my home page controller, will that 
> allow paging to work in my home page table through this code
> <?php if(isset($pagination)) echo $pagination;?> (Used in some Views, not 
> home page)
>
> Quite new to controllers :( Modifying Old code sample site Thanks! :)
>
  • Paging Jonathan Toh
    • Re: Paging Jonathan Toh

Reply via email to