I still can't get it work,
here's my code (I'm trying to protect entire controllers action):
<?
/ ***
/apps/app_controller.php
*/
class AppController extends Controller {
        var $helpers = array('Html','Javascript','Ajax','othAuth');
    var $components = array('othAuth','RequestHandler');
   var $othAuthRestrictions = "*";

    function beforeFilter()
        {
        $auth_conf = array('auto_redirect' => true,
                        'login_page'  => '/users/login',
                        'logout_page' => '/users/logout',
                        'access_page' => '/autocars/index',
                        'hashkey'     => 'Wh4theV3rHaSHKeYz',
                        'strict_gid_check' => false);

        $this->othAuth->controller = &$this;
        $this->othAuth->init($auth_conf);
        $this->othAuth->check();
        }
}

I've routed base path (/) to /autocars/index

but when I try to access www.myweb.com I got this error:

Notice: Undefined index: url in
/home/projects/autoindonesia_admin_area/apps/autoadmin/controllers/components/oth_auth.php
on line 181

Notice: Undefined index: url in
/home/projects/autoindonesia_admin_area/apps/autoadmin/controllers/components/oth_auth.php
on line 182

Warning: Cannot modify header information - headers already sent by
(output started at
/home/projects/autoindonesia_admin_area/apps/autoadmin/controllers/components/oth_auth.php:181)
in
/home/projects/autoindonesia_admin_area/lib/cake/cake/libs/controller/controller.php
on line 391

I can succesfully redirect to login page only if I access page via full
url: www.myweb.com/autocars/index, if I try to login, I got 'succes
login' message ('You're Logged in!'),  but still can't get acces to any
controller's action (succes login doesn't redirect me to acces_page,
but stay in the login page), and I always redirected to my login page

thx


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to