PrajapatiRaj / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Yii::getPathOfAlias doesn't work when "user" module is installed elsewhere than "application.modules" #105

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Yii::getPathOfAlias called in ProfileFieldController and UWjuidate (and 
possibly other places) uses hardcoded path (application.modules.user....) which 
is INCORRECT since the "user" module might be available under other alias (in 
my case, custom one: my_modules.user).

Yii::app()->getModule('user')->getBasePath() should be used instead, I guess.

Original issue reported on code.google.com by miga...@gmail.com on 19 Aug 2011 at 1:03