[studs-user] Studs and LazyForms
Status: Beta
Brought to you by:
mojavelinux
|
From: Newton W. <new...@gm...> - 2007-02-12 16:29:26
|
Hi,
I'm thinking about to use Studs in some apps here, but I want to know
if there is something like LazyForms for it, just like struts. :).
And I've done something I would like to share with you... using
Struts, we can call a another method instead of execute() by passing
the "parameter" attribute off the action tag. So, to do the same thing
with Studs, I've changed the processActionExecute() method in
RequestProcessor class:
function &processActionExecute(&$request, &$response, &$action,
&$form, &$mapping)
{
$parameter = $mapping->getParameter() ? $mapping->getParameter() : 'execute';
// try {
$result =& $action->$parameter($mapping, $form, $request, $response);
//$result =& $action->execute($mapping, $form, $request, $response);
...
}
What you guys think about this?
Sorry my bad english... I don't speak English as much as I want to. :).
--
Newton Wagner
|