/** * Constructor * * @param Request $request * @return ProjectGroupsController */ function __construct($request) { parent::__construct($request); $this->wireframe->addBreadCrumb(lang('Groups'), assemble_url('project_groups')); $group_id = $this->request->get('project_group_id'); if ($group_id) { $this->active_project_group = ProjectGroups::findById($group_id); } // if if (instance_of($this->active_project_group, 'ProjectGroup')) { $this->wireframe->addBreadCrumb($this->active_project_group->getName(), $this->active_project_group->getViewUrl()); } else { $this->active_project_group = new ProjectGroup(); } // if $this->smarty->assign(array('active_project_group' => $this->active_project_group)); }