public function opportunitytoproject() { $models = array(); foreach ($this->_uses as $model) { $models[get_class($model)] = $model; } $this->view->set('models', $models); $opportunity = new Opportunity(); $opportunity->load($this->_data['opportunity_id']); $this->view->set('opportunity', $opportunity); }