/** * Set the I2CE_Form object in the page template. * * This method will pass the edit object to the page template so that it can process all the form variables. */ protected function setForm() { parent::setForm(); if ($this->old_position) { $this->template->setForm($this->old_position, 'current_position'); $this->template->setForm($this->old_person_position, 'current_position'); } if ($this->new_position) { $this->template->setForm($this->new_position, 'new_position'); } }
/** * Set the I2CE_Form object in the page template. * * This method will pass the edit object to the page template so that it can process all the form variables. */ protected function setForm() { parent::setForm(); $this->template->setForm($this->position); }