public function indexDirAction() { $dao = new DirectorDAO(); $directors = $dao->findAll(); // First argument : the view ; // Second argument : associative array. key is the name // of the variable, value is it's value $this->render('indexDir', array('directors' => $directors)); }
public function formAction() { $dir = new DirectorDAO(); $directors = $dir->findAll(); $this->render('insertProgram', array('program' => new ProgramDTO(), 'directors' => $directors)); }