示例#1
0
 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));
 }
示例#2
0
 public function formAction()
 {
     $dir = new DirectorDAO();
     $directors = $dir->findAll();
     $this->render('insertProgram', array('program' => new ProgramDTO(), 'directors' => $directors));
 }