On 8/29/08, Jaime <[EMAIL PROTECTED]> wrote:
>
> Weird: it only happens when Routing.admin is set to 'admin'. When I
> change it, everything works perfectlly.
>
> On 29 ago, 13:13, Jaime <[EMAIL PROTECTED]> wrote:
>> I've been dealing with this for two days; hope it's not a lame
>> question. On 1.2.0.7296 (RC2) I set "Configure::write('Routing.admin',
>> 'admin')" in core.php, and my app_controller.php looks like this:
>>
>> class AppController extends Controller {
>>   function beforeFilter() {
>>     die(pr($this->Session->read()));
>>   }
>>
>> }
>>
>> My $this->Auth->userModel is 'Login'.
>>
>> Now when I log in as a valid user (I'm using Acl + Auth) and go to /
>> news I get, as expected:
>>
>> /news/index:
>> Array (
>>     [Config] => Array ( ... )
>>     [Message] => Array ( ... )
>>     [Auth] => Array (
>>         [Login] => Array ( **LOGGED USER DATA** )
>>     )
>> )
>>
>> But when using admin prefix (/admin/news/index), the logged-in user
>> data is not shown (probably overwritten by redirect info):
>>
>> Array (
>>     [Config] => Array ( ... )
>>     [Message] => Array ( ... )
>>     [Auth] => Array (
>>         [redirect] => /admin/news/index
>>     )
>> )
>>
>> Because of this I cannot use admin routes (I have no loggin info).
>> After deep debugging and searching everywhere,  I just cannot figure
>> out the solution :-(
>>
>> Any ideas?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to