Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to include extension files of egmap in yii

Tags:

php

yii

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

like image 754
Bilal Rabi Avatar asked Jan 22 '26 07:01

Bilal Rabi


2 Answers

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 :-)

like image 129
Sanand Sule Avatar answered Jan 25 '26 12:01

Sanand Sule


you have a typo mistake

Yii::import('ext.egmaps.*');

should be

Yii::import('ext.egmap.*');
like image 39
RusAlex Avatar answered Jan 25 '26 11:01

RusAlex