i want to include and use egmap extension i have created a directory with the name extensions and i have uploaded egmap files .
path is like this .yiiproject/protected/extensions/egmap/allfiles but i am getting error no file or stream availible. failed to open file on this line of code
Yii::import('ext.egmaps.*');
please guide me how to do this
If you download the latest EGMap extension. The zip file has a folder "EGMap" containing all extension related files. Place this folder under protected/extensions/ folder.
In your view file you could do,
Yii::import('application.extensions.EGMap.*');
Using the exact case worked for me :-)
you have a typo mistake
Yii::import('ext.egmaps.*');
should be
Yii::import('ext.egmap.*');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With