yii - include_once(Zend\Uri\Http.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory -
i'm using zend framework yii create upload video function using youtube api. got error
include_once(zend\uri\http.php) [<a href='function.include-once'>function.include-once</a>]: failed open stream: no such file or directory when trying use zend_gdata_authsub::getauthsubsessiontoken($_get['token']). have zendautoloader , i'm developing yii framework. problem here?
zend framework uses it's own auto-loader, mentioned, believe may fighting yii's autoloader.
here's nice blog post great example of how achieve integration third party tools, gist of turn off yii autloader, load class, , reload yii autloader.
// reference path of phpexcel classes $phpexcelpath = yii::getpathofalias('ext.phpexcel.classes'); // turn off our amazing library autoload spl_autoload_unregister(array('yiibase','autoload')); // include external library file. include($phpexcelpath . directory_separator . 'phpexcel.php'); // application logic. // once have finished using library, give power yii... spl_autoload_register(array('yiibase','autoload'));
Comments
Post a Comment