I think I know what's causing the problem.
I have a ELEMENT that is calling index() action of users_controller to
get some data from users model and in index() function I have:
$users = $this->paginate();
if(isset($this->params['requested'])) {
return $users;
}
$this->set('users', $users);
If I comment this there are no errors?!?
My element looks like this:
$users = $this->requestAction('users/index/sort:id/direction:desc/
limit:5');
foreach($users as $user):
echo $user['User']['username'];
echo '<br />';
endforeach;
Hope this helps...
Luka
In my users_controller I have index() action
On Aug 25, 9:36 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Mon, Aug 25, 2008 at 3:32 PM, luigi7up <[EMAIL PROTECTED]> wrote:
> > I found few posts about this problem but none of them resolves my
> > problem.
>
> Really hard to diagnose without seeing any code. Have you tried
> looking at this fantastic tutorial on using the Auth component?
>
> http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful...
>
> There are some other links there that deal with the Auth component as well.
>
> --
> Chris Hartjes
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---