public function executePrintStudent(sfWebRequest $request) { $this->student_career_school_year = StudentCareerSchoolYearPeer::retrieveByPK($request->getParameter('student_career_school_year_id')); $this->students = array($this->student_career_school_year->getStudent()); $this->career_id = $this->student_career_school_year->getCareerSchoolYear()->getCareerId(); $this->division = DivisionPeer::retrieveByStudentCareerSchoolYear($this->student_career_school_year); $this->getUser()->setAttribute('division_id', $this->division->getId()); $this->getUser()->setAttribute('students', $this->students); $this->back_url = '@student'; $this->setLayout('cleanLayout'); $this->setTemplate('index'); }