Michal Charemza wrote:
> - In Public_ShowPostSuccessView::executeHtm I've added the line
>
> exit('ID: ' . $rd->getParameter('post_id'));
>
> to see if "getParameter" returns the correct value. It does not: it
> does not appear to return anything. Somehow when the URL is blog/
> [idOfPost] the idOfPost get lost somewhere...
I haven't looked at bloggie's source or the tutorial but this sounds a
lot like a validation issue - you are running "strict" validation mode
and 'post_id' parameter doesn't have a validator (or the validator fails
which probably is not the case here) and Agavi removes the parameter as
unsafe input (yes, this happens with route parameters too even if they
are already "validated" by the regular expression).
Check ValidatorManager's mode in app/config/factories.xml. My money is
on it being "strict". For a quick fix you can set it to "relaxed" (or
"conditional" if ShowPostAction doesn't have any validators) but it is
strongly recommended that strict validation is always used. This way you
never accidentally use unvalidated input data.
-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