App::import('Vendor', 'phpFlickr', array('file' =>
'phpFlickr.php')); // phpFlickr.php is in
/app/vendors/phpFlickr/phpFlickr.php
2010/9/16 euromark <[email protected]>:
> usually cake is looking for a subfolder inside vendors with the same
> name and then the file (with the same name as well)
> the upper cases could also be problem sometimes
>
>
> On 15 Sep., 23: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
>
--
Marcelo Siqueira
°v° Web/Linux Development
/(_)\ MSN: [email protected] / Gtalk: [email protected]
^ ^ Skype: marcelo_ipe / Twitter: marcelosiqueira
Fone: (67) 3021-1112
Ubuntu User #28569 / Linux User #400371
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