All pastes #399733 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-18 06:15 UTC
rendered paste body
    public function executePage1 ()
    {
        if ($this->getRequest()->getMethod() == sfRequest::POST
            && $this->getRequestParameter('save'))
        {
            // it passed validation so it's good
            // do what you need to do here.
            $this->forward ('myModule', 'page2');
        }
        return self::doPage1 ();
    }
    public function handleErrorPage1()
    {
        return self::doPage1 ();
    }
    
    protected function doPage1 ()
    {
        // setup view data here
        $this->foo = FooPeer::doSelect ();
        return sfView::SUCCESS;
    }