Ejemplo n.º 1
0
 /**
  * The POST method for setting a user's rows per page
  *
  * @param ModelConfig	$config
  *
  * @return JSON
  */
 public function action_rows_per_page($config)
 {
     //get the inputted rows and the model rows
     $rows = (int) Input::get('rows', 20);
     $config->setRowsPerPage($rows);
     return Response::JSON(array('success' => true));
 }