Hi: I have a Comment module that can be used as a slot in other modules. Let's say i'm using Comment's form in my News ViewAction as a slot to let the user post comment for each News. I'm storing the original URL (in this case, News url) in a hidden element in Comment's form to redirect back user to original URL when the Comment submitted. If a user submit the form without any Validation error, i just redirect her back (in Comment's AddSuccessView) using the hidden URL. But the problem is when user submits the Comment form with some Validation error.
David helped me with this: " http://www.mail-archive.com/[email protected]/msg00584.html" to pass validation_report to FPF. So, to use the createForwardContainer, i need Module name, Action name and Parameters. $this->createForwardContainer($moduleName, $actionName, $parameters); for instance in this case $this->createForwardContainer('News', 'View', array('id'=>5)); I have the complete URL, but don't have Module name,... seperately. is there anyway to pass the URL to Routing and get the parsed info. Or do you have any Idea how to handle this? Thanks in advanced.
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
