I'm a bit confused in the proper use of App::import() vs. App::uses()
in migrating to 2.0.

I'm try to load the Facebook php sdk from the Vendor folder as I used
to in 1.3.

In 1.3 what worked for me was :

App::import('Vendor', 'facebook)

function __construct(){
        parent::__construct();

        $this->facebook = new Facebook(array(
                    'appId' => $this->__api_key,
                    'secret' => $this->__app_secret ));
    }

How should I be using the Constructor with App::uses()?
I've been through the Migration Guide to 2.0 and can see there has
been obvious changes but I suppose I don't have a clear enough
understanding to work out what I should be doing differently here.

- Ed

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to