thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

The asset modules/user/assets to be published does not exist #123

Closed andycaramba closed 10 years ago

andycaramba commented 11 years ago

Greetings. I use a Composer and all third-party modules and components are stored in lib/vendor folder. Accordingly, the yii-user-management module is stored in the lib/vendor/thyseus/yii-user-management. And when I try to install the module I get an error

The asset "/path/to/may/app/modules/user/assets" to be published does not exist

because the path to the assets hard coded as application.modules.user.assets folder.

thyseus commented 11 years ago

There is a path alias:

Yii::setPathOfAlias('YumAssets' , dirname(FILE) . '/assets/');

defined in UserModule.php line 4 - you could replace all the hard coded paths (YumAssets.xyz instead modules.user.assets.xyz) and issue a pull request.

thank you.