Exemplo n.º 1
0
	public function indexAction()
	{
		$projects = new Project_Models_ProjectMapper();
		$vehicles = new Vehicle_Models_VehicleMapper();
		
		$arrayProjects = $projects->fetchAllJoin();
		$arrayVehicles = $vehicles->fetchAllJoin();
		
		$this->view->arrayProjects = $arrayProjects;
		$this->view->arrayVehicles = $arrayVehicles;
		
		$messages = new Admin_Models_MessageMapper();
		$validations = new Pment_Models_MplanMapper();
		
		$userId = $this->getUserId();
		$arrayMessages = $messages->fetchAllNews($userId);
		$arrayValidations = $validations->fetchAllValidations($userId);
		
		$this->view->arrayMessages = $arrayMessages;
		$this->view->arrayValidations = $arrayValidations;
	}