Hi, I've had success with Vendors before, but can't seem to get this
example working, any help would be much appreciated.
In my controller (flickr_controller.php) I have
App::import('Vendor', 'phpFlickr'); // phpFlickr.php is in /app/
vendors/phpFlickr.php
class FlickrController extends AppController {
var $name = 'Flickr';
var $uses = array();
function index() {
$api_key = 'xxx';
$secret = 'xxx';
$flickr = new phpFlickr($api_key, $secret);
debug($flickr);
}
}
The browser returns:
Fatal error: Class 'PhpFlickr' not found in /Applications/MAMP/htdocs/
CakeApp/app/controllers/flickr_controller.php on line 15
I'm using CakePHP 1.3, the Facebook Api works using the same Vendor
import structure so I'm stumped why phpFlickr doesn't, especially as
it works fine from localhost outside of CakePHP.
Any ideas?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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