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

-- 
Veikko Mäkinen
[email protected]
044 5910 413
http://blog.veikko.fi


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

Reply via email to