I did do as suggested below and it didn't work, I tried both return
$level and $this->set('level', $level), both failing to return the
value to the controller.  Writing my own function and calling it
$this->levelcheck() was the only way it seemed to work.

Tane


>
> will you not likely need to know the level for most functions? if so,
> would it not be best to follow the previous advice and put this in
> beforeFilter() in your app_controller, then you will never need to
> call levelCheck explicity, it will be done for you automatically.
>
> if you're using othAuth, you'll already have some code in
> beforeFilter, so just add the above to that...
>
> jb
>
> --
>
>
> jon bennett
> t: +44 (0) 1225 341 039 w: http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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