I have been add my own variable $this->clan in the app controller and
having the other controllers access the data inside that, but I wasn't
sure if this is the Cake way to do things :)

On Mar 6, 7:30 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Also maybe you are better wrapping that functionality in a component
> (just a thought).
>
> On Thu, Mar 6, 2008 at 1:53 PM, dr. Hannibal Lecter <[EMAIL PROTECTED]> wrote:
>
>
>
> >  Is this what you need?
>
> >  class AppController extends Controller
> >  {
> >         var $_myPassedVar;
>
> >         function beforeFilter()
> >         {
> >                 $this->_myPassedVar = 'somevalue';
>
> >         }
> >  }
>
> >  On Mar 6, 4:43 pm, CrazyDave <[EMAIL PROTECTED]> wrote:
> >  > Hi,
>
> >  > Does anyone know the recommend or best way of passing information from
> >  > the app_controller to the other controllers.  I'm probably missing
> >  > something or overlooked something in the manual but I didn't see any
> >  > clear defined root.
>
> >  > I have an app_controller that processes certain params from the URL
> >  > that are optionally present for all controllers.  These are used to
> >  > get data from a model and then need to be access throughout the rest
> >  > of the site controllers.
>
> >  > What's the best way?
>
> >  > Thanks,
> >  > Dave
>
> >  >http://youmuppet.com
--~--~---------~--~----~------------~-------~--~----~
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