コード例 #1
0
ファイル: SaveController.php プロジェクト: asika32764/natika
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     if (isset($this->data['id'])) {
         $this->record->load($this->data['id']);
     }
 }
コード例 #2
0
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     $this->record->load($this->data['id']);
     $this->category = $this->model->getRecord('Category');
     $this->category->load($this->record->category_id);
 }
コード例 #3
0
ファイル: SaveController.php プロジェクト: asika32764/natika
 /**
  * prepareExecute
  *
  * @return  void
  */
 protected function prepareExecute()
 {
     parent::prepareExecute();
     $this->useTransaction(true);
     if (isset($this->data['id'])) {
         $this->record->load($this->data['id']);
     }
     $this->catid = $this->input->get('category');
     $this->category = new CategoryRecord();
     $this->category->load($this->catid);
     $this->data['category_id'] = $this->catid;
 }