> Don't try to get the action but instead store the URL user tried to get
> and after login redirect (http redirect) to the correct URL. The sample
> app does just this:
>
>
>

Thx, i solved my problem, i found the next method

public function createSystemActionForwardContainer($type, AgaviException $e
= null)
    {
        if(!in_array($type, array('error_404', 'module_disabled', 'secure',
'login', 'unavailable'))) {
            throw new AgaviException(sprintf('Unknown system forward type
"%1$s"', $type));
        }

        // track the requested module so we have access to the data in the
error 404 page
        $forwardInfoData = array(
            'requested_module' => $this->getModuleName(),
            'requested_action' => $this->getActionName(),
            'exception'        => $e,
        );
        $forwardInfoNamespace = 'org.agavi.controller.forwards.' . $type;

        $moduleName = AgaviConfig::get('actions.' . $type . '_module');
        $actionName = AgaviConfig::get('actions.' . $type . '_action');

        if(false ===
$this->context->getController()->checkActionFile($moduleName, $actionName))
{
            // cannot find unavailable module/action
            $error = 'Invalid configuration settings: actions.%3$s_module
"%1$s", actions.%3$s_action "%2$s"';
            $error = sprintf($error, $moduleName, $actionName, $type);

            throw new AgaviConfigurationException($error);
        }

        $forwardContainer = $this->createExecutionContainer($moduleName,
$actionName);

        $forwardContainer->setAttributes($forwardInfoData,
$forwardInfoNamespace);
        // legacy
        $this->context->getRequest()->setAttributes($forwardInfoData,
$forwardInfoNamespace);

        return $forwardContainer;
    }
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to