Guest User

Untitled

a guest
Apr 23rd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * register actions.
  5. *
  6. * @package yoga
  7. * @subpackage register
  8. * @author Your name here
  9. * @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
  10. */
  11. class registerActions extends sfActions
  12. {
  13. /**
  14. * Executes index action
  15. *
  16. */
  17. public function executeIndex()
  18. {
  19. $this->accommodations = AccommodationPeer::doSelect(new Criteria());
  20. $this->questions = StudentQuestionPeer::doSelect(new Criteria());
  21. }
  22.  
  23. public function executeCreate()
  24. {
  25. $this->student = new Student();
  26. $this->setTemplate('edit');
  27.  
  28. $this->accomodation = new Accomodation();
  29. $this->setTemplate('edit');
  30.  
  31. $this->student_response = new StudentResponse();
  32. $this->setTemplet('edit');
  33. }
  34.  
  35. }
Add Comment
Please, Sign In to add comment