How do I use the Zend Youtube API correctly?

Posted by pharma_joe on Stack Overflow See other posts from Stack Overflow or by pharma_joe
Published on 2010-05-13T12:30:48Z Indexed on 2010/05/13 12:34 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

I am trying to access the YouTube API with the Zend libraries that I have included like this (the full path to the Zend library is components/lib/Zend/Gdata.php):


    //Include Zend Gdata
    set_include_path('components/lib');
    include("Zend/Gdata.php");

I now try to use the framework thus:

    //Access video data via Zend library
    $yt = new Zend_Gdata_YouTube();

However when running the script it returns:

    Fatal error: Class 'Zend_Gdata_YouTube' not found in E:\inetpub\students\fit3060\20712510\ass2\results.php  on line 48

I think I have not included the Zend library properly or declared the include path correctly?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about php