/** *Method responsible for showing only piece of advice. It transfers advice and author object * @param sfWebRequest $request */ public function executeShow(sfWebRequest $request) { $myadvice = $this->getRoute()->getObject(); $this->thisauthor = sfGuardUserPeer::getUserBy($myadvice->getUserId()); $this->advice = $myadvice; $this->forward404Unless($this->advice); }