Hello,

I try to use access_denied_url, normally would call my Route, my
controller and my view, but displays only the basic error page.

#security.yml
firewalls:
        main:
            pattern:  .*
            anonymous: true
            access_denied_url: /hoho/error403

#routing.yml
hoho:
    pattern:  /hoho/error403
    defaults: { _controller: FrontBundle:Main:hoho }

#controller
       /**
         * @extra:Secure(roles="ROLE_ADMIN")
         * @extra:Template()
         * Enter description here ...
         */
        public function indexAction()
        {
                return array();
        }

    /**
     * @extra:Template()
     * Enter description here ...
     */
    public function hohoAction()
    {
        $mess = 'hoho!';

      return array ('mess' => $mess);

    }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to