Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Using bower to get css and js files #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vladim1
Copy link

@vladim1 vladim1 commented Dec 13, 2016

Fixes #1, uses bower to get asset files

Added bower leaflet.markercluster dependency to composer.json
$this->sourcePath = __DIR__ . '/assets';
$this->js = YII_DEBUG ? ['js/leaflet.markercluster-src.js'] : ['js/leaflet.markercluster.js'];
$this->sourcePath = \Yii::getAlias('@bower').'/leaflet.markercluster/dist';
$this->js = YII_DEBUG ? ['leaflet.markercluster-src.js'] : ['leaflet.markercluster.js'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a huge mistake from my end. We should add the reference on public $js attribute. Do you mind make the change?

Thank you so much @vladim1

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind to make the change, but I didn't get what is wrong with the current PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing wrong, just asking for your help there

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants