Assetmanager Problem

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?

What is the value of Yii::getPathOfAlias(‘admin.assets’) ?

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'));




Yes, but I asked because that’s a good place to start debugging. What does Yii think it is when you run it?