Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function executeIndex(sfWebRequest $request)
- {
- $this->form = new myChooseDomainForm();
- if($request->isMethod('post'))
- {
- $this->form->bind($request->getParameter($this->form->getName()));
- if($this->form->isValid())
- {
- self::chooseDomain($this->form->getValue('domain'));
- }
- }
- }
- private function chooseDomain($domain)
- {
- $this->blogs = Doctrine_Core::getTable('BlogLink')
- ->getBlogsByDomain($domain, 10);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement