/** * prepareExecute * * @return void */ protected function prepareExecute() { parent::prepareExecute(); if (isset($this->data['id'])) { $this->record->load($this->data['id']); } }
/** * 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); }
/** * 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; }