public function __construct($code, $class, $baseControllerName) { parent::__construct($code, $class, $baseControllerName); if (!$this->hasRequest()) { $this->datagridValues = array('_per_page' => 30, '_page' => 1, '_sort_order' => 'DESC', '_sort_by' => 'updatedAt'); } }