efcoders
(Efcoders)
1
I used this code
public function getAssetsUrl()
{
if ($this->_assetsUrl === null)
$this->_assetsUrl = Yii::app()->getAssetManager()->publish(
Yii::getPathOfAlias('admin.assets') );
return $this->_assetsUrl;
}
to publish my module assets to site and then access them
It seems this could not successfully copy bootstarp.css file to assets folder…
Any specific reason?
jacmoe
(Jacob Moen)
2
What is the value of Yii::getPathOfAlias(‘admin.assets’) ?
hiral23790
(Hiraldarji237)
3
here i have access image from hostel_images folder inside module assets like follwing, it may helps you
$url = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.hostel.assets.hostel_images'));
jacmoe
(Jacob Moen)
4
Yes, but I asked because that’s a good place to start debugging. What does Yii think it is when you run it?