Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public function executeIndex(sfWebRequest $request)
  2. {
  3. $this->form = new myChooseDomainForm();
  4. if($request->isMethod('post'))
  5. {
  6. $this->form->bind($request->getParameter($this->form->getName()));
  7.  
  8. if($this->form->isValid())
  9. {
  10. self::chooseDomain($this->form->getValue('domain'));
  11. }
  12. }
  13. }
  14.  
  15. private function chooseDomain($domain)
  16. {
  17. $this->blogs = Doctrine_Core::getTable('BlogLink')
  18. ->getBlogsByDomain($domain, 10);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement