Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yii Framework Extension

I'm currently trying to use the YII Framework extensions. However, I have met up with some problems.

I have followed the step by step procedure in this website: https://github.com/drumaddict/skydrive-api-yii

However, when I call

Yii::import('protected.extensions.skydrive.SkyDriveAPI');

in the php.

It gives me Uncaught exception 'CException' with message 'Alias "protected.extensions.skydrive.SkyDriveAPI" is invalid.

I'm new to the Yii Framework and would need some help. May anyone give me some pointers.

Thanks, Chan Yeoh

like image 978
user288231 Avatar asked Nov 18 '25 10:11

user288231


1 Answers

If your extension is placed in protected/extensions just use:

Yii::import('ext.skydrive.SkyDriveAPI');

which is the same as:

Yii::import('application.extensions.skydrive.SkyDriveAPI');
like image 162
schmunk Avatar answered Nov 20 '25 02:11

schmunk