For anybody who needs to do this or something similar, sample app contains everything you will need to create this scenario
app/modules/Products/views/Product/ViewErrorView.class.php:       
return $this->createForwardContainer(AgaviConfig::get('actions.error_404_module'), AgaviConfig::get('actions.error_404_action'));
app/modules/Default/views/LoginSuccessView.class.php:            $this->getResponse()->setRedirect($usr->removeAttribute('redirect', 'org.agavi.SampleApp.login'));

:-X

Veikko Mäkinen wrote:
Craig Fairhurst - youds.com wrote:
  
David

Cheers, thanks for clarifying that for me.
So how do you forward / redirect? What's the difference.

    

Forward (internally from one action to another, happens "inside" the
request):

//myview::execute*()
return $this->createForwardContainer(/*read the api*/);


Redirect (HTTP redirect using the Location header. Browser GETs a new
resource)

//myview::execute*()
$this->getResponse()->setRedirect($this->context->getRouting()->gen('another.page'));


-veikko

  


--

Craig Fairhurst
Call 01200 422 533 Fax 01200428726
Mobile 07912079370 Skype craigfairhurstuk

Web http://www.youds.com


YOUDS MEDIA

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. YOUDS Media, Fern Court, Clitheroe, Lancashire BB7 1BE http://www.youds.com

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to