/** * Builds the response variables needed for rendering a form. * Usually there will be no need to override this function. * * @param integer $id The id of the resource to load. * * @return void */ public function edit($id = null) { // Set title $this->setTitle($id ? 'K2_EDIT_EXTRA_FIELD' : 'K2_ADD_EXTRA_FIELD'); // Set row $this->setRow($id); // Set form $this->setForm(); // Set menu $this->setMenu('edit'); // Set Actions $this->setFormActions(); // Render parent::render(); }
/** * Builds the response variables needed for rendering a form. * Usually there will be no need to override this function. * * @param integer $id The id of the resource to load. * * @return void */ public function edit($id = null) { // Set title $this->setTitle('K2_EDIT_USER'); // Set row $this->setRow($id); // Set form $this->setForm(); // Set menu $this->setMenu('edit'); // Set Actions $this->setFormActions(); // Render parent::render(); }