/** * Override the edit action to supply some selectable relationships * * @param MappedObject $model */ public function editAction($model = null) { $this->view->relationships = array("Lead", "Opportunity", "Customer", "Dead", "Supplier"); parent::editAction($model); }
/** * Edit a timesheet */ public function editAction($model = null) { $pid = $this->_getParam('projectid'); if ($pid) { $this->view->project = $this->byId($pid, 'Project'); } $cid = $this->_getParam('clientid'); if ($cid) { $this->view->client = $this->byId($cid, 'Client'); } // bind in the task types $task = new Task(); $this->view->categories = $task->constraints['category']->getValues(); parent::editAction($model); }