I'd look at Components or possibly a Helper, depending what you're doing.

On Thu, Jul 9, 2009 at 2:50 PM, 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to