Thanks Doc, that was it! I don't know why, but I've tried $this->$facebook before ...!
Cheers, tobi_one On Jul 10, 4:47 am, "Dr. Loboto" <[email protected]> wrote: > $this->facebook > It is really _basics_ of OOP. > > On Jul 10, 1:50 am, tobi_one <[email protected]> wrote: > > > Hi, > > > just a quick one. I have Facebook Connect set up in my app controller > > like this > > > function __construct() { > > parent::__construct(); > > $this->facebook = new Facebook($this->__fbApiKey, > > $this->__fbSecret); > > > } > > > I can obviously access the facebook object with $this->facebook in the > > appcontroller. But how can I access it from another controller (just a > > general, user defined controller)... > > > Guess I should finally study PHP5 basics... Sorry for that and thanks! > > > Cheers, > > tobi_one > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
