⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Function Limit



beimar24

beimar24
  • profile picture
  • Member

Posted 05 September 2013 - 22:20 PM

Very good day appreciated Engineers
I have the following problem
I need to filter a table to not show much data
I have this
 
      $ crud-> set_table ('neighborhoods')
      -> limit ($ limit, 20)
      -> set_subject ('New neighborhood')
 
But this does not work, someone here has an example
how to do
Best regards
from Bogota Colombia
___________________________________________________
 
 
Muy buen dia apreciados Ingenieros
Tengo el siguiente problema 
necesito filtrar una tabla para no mostrar tantos  datos 
Tengo esto
 
     $crud->set_table('barrios')                      
     ->limit($limit,20)
     ->set_subject('Nuevos barrios')
 
Pero esto no me funciona, alguien aqui tiene un ejemplo 
de como hacerlo 
Cordial saludo 
desde Bogota Colombia 

 

 


davidoster

davidoster
  • profile picture
  • Member

Posted 06 September 2013 - 08:59 AM

Hello.

The only way to change what is displayed is by going to applications/config/grocery_crud.php and changing the line

// The default per page when a user firstly see a list page
$config['grocery_crud_default_per_page'] = 25;

 

Also check this line

//Having some options at the list paging. This is the default one that all the websites are using.
//Make sure that the number of grocery_crud_default_per_page variable is included to this array.
$config['grocery_crud_paging_options'] = array('10','25','50','100');