/** * Initialize object. */ public function init() { parent::init(); if ($this->_layout) { $this->getHelper('layout')->setLayout($this->_layout); } }
/** * General method to save models (Benri_Db_Table_Row). * * @param Benri_Db_Table_Row * @return Benri_Controller_Rest */ protected function _saveModel(Benri_Db_Table_Row &$model, $data = null) { return parent::_saveModel($model, $data ?: $this->_input); }