public function action_index($page = 1) { // make sure $page contains something usefull if ( ! is_numeric($page) or $page < 1) { $page = 1; } // pages internally are zero offset $page--; ...
admin/users/search/search?search=test
admin/users/search/2?q=test
public function before($data = null) { parent::before(); if (Input::get('filter')) { if (Input::get('filter') == 'everything') { Session::delete('filter'); Session::delete('filter_id'); } else { Session::set('filter', Input::get('filter')); Session::set('filter_id', Input::get('id')); } } if (Input::get('sort')) { Session::set('sort', Input::get('sort')); } }
It looks like you're new here. If you want to get involved, click one of these buttons!