I believe you should set the contents of the $uses array in the class
but outside of any function, generally at the top.

Your example looks right, but I think case sensitivity counts in PHP
5, and off the top of my head I can never remember which is singular
and which is plural, models or controllers.
Perhaps turn up debug all the way, and var_dump the controller: I
believe it lists all models that are loaded.



On May 16, 2:44 pm, uolax <[EMAIL PROTECTED]> wrote:
> Hey,
>
> Nope, not using uses. I tried to call $uses before the beforefilter
> call...nothing. I then tried to use it in the beforefilter call and no
> luck. It's should be before the beforefilter call as
> $uses=array('users'); correct?
>
> On May 16, 1:35 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
>
> > Just to confirm:You´ve told the AppController to use the correct
> > tables, via the $uses array?
>
> > On May 16, 1:46 pm, uolax <[EMAIL PROTECTED]> wrote:
>
> > > In regards to the last question, my app_controller.php looks like:
>
> > > function beforeFilter() {
> > >       $mylogtest=$this->Session->read('boppcake');
> > >                 $user_id = $mylogtest['User']['username'];
> > >                 $page = $this->name.DS.$this->action;
> > >         $access = $this->Acl->check($user_id,$page,'read');
> > >         if (($access === false)) {
> > >                         echo '<br><b>session has no access</b><br>';
> > >         }else {
> > >                 echo '<br><b>session has access</b><br>';
> > >         }
> > >     }- Hide quoted text -
>
> > - Show quoted text -


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to