Usually, if you're using requestAction(..) this redirect occurs
because the action you're requesting is not allowed by the
AuthComponent. Make sure it is :-)
Hope that helps!
On Oct 24, 11:38 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> hi,
> 1) i m use elements for count number of user are live, when i put
> element code in php delemeters <?php ?> then firefox generate error
>
> error is:
> Redirect Loop
>
> Firefox has detected that the server is redirecting the request for
> this address in a way that will never complete.
>
> The browser has stopped trying to retrieve the requested item. The
> site is redirecting the request in a way that will never complete.
>
> * Have you disabled or blocked cookies required by this site?
> * NOTE: If accepting the site's cookies does not resolve the
> problem, it is likely a server configuration issue and not your
> computer.
>
> 2) if i remove this <?php ?> delemeters at that time that contain
> display in html format.
>
> my code like that:
>
> element ::
>
> $n = $this->requestAction('/users/getCountLiveUsers'); echo $n;
>
> controller ::
>
> function getCountLiveUsers()
> {
> $n = $this->tbuser->findAll($conditions =
> "IsUserOnline=1","count(IsUserOnline ) as 'count'");
> $this->set('n',$n);
> }
>
> layout page:
>
> <? echo $this->renderElement('number_of_live_users'); ?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---