Not sure if this is the correct way to reply, but I can't find the thread on
the Google Groups site. I fixed the problem by trial and error by changing
the 'phpFlickr' argument in App::import to lowercase. That was it! Works
now. Just to clarify the new declaration is:
App::import('Vendor', 'phpflickr');
(The file name itself is still 'phpFlickr.php')
On 15 September 2010 22:55, igniteflow <[email protected]> wrote:
> 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