Exemplo n.º 1
0
 /**
  * Initialize object.
  */
 public function init()
 {
     parent::init();
     if ($this->_layout) {
         $this->getHelper('layout')->setLayout($this->_layout);
     }
 }
Exemplo n.º 2
0
 /**
  * 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);
 }