Hi!
Have a quick question concerning the access of GET data within an action.
To my understanding i define a route which accepts a GET parameter like
this:
ROUTE
--------------------------------------------------------------------
<route pattern="^/list/(post_id:[a-zA-Z0-9_\-äöüß]*)$" module="MAIN"
action="ListArticles" />
--------------------------------------------------------------------
then in action 'ListArticles' i should be able to access 'post_id' within
executeRead() via the AgaviRequestDataHolder, no?
ACTION
--------------------------------------------------------------------
...
public function executeRead(AgaviRequestDataHolder $rd)
{
if ($rd->getParameter('post_id') == '') {
return 'Failure';
}
else {
return 'Success';
}
}
...
--------------------------------------------------------------------
have 1.0 beta 6 installed.
would be very glad for a feedback.
thanks in advance,
john
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users