sarvan75 / yii-user

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

Fix alias in UWjuidate.php #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put yii-user into another dir than ./modules
2. Open registration page

What is the expected output? What do you see instead?
The reg. page. 
Asset error.

What version of the product are you using? On what operating system?

Please provide any additional information below.
--- a/components/UWjuidate.php
+++ b/components/UWjuidate.php
@@ -61,7 +61,7 @@ class UWjuidate {
                $options['dateFormat'] = 'yy-mm-dd';
                $options=CJavaScript::encode($options);

-               $basePath=Yii::getPathOfAlias('application.modules.user.views.as
+               $basePath=Yii::getPathOfAlias('user.views.asset');
                $baseUrl=Yii::app()->getAssetManager()->publish($basePath);
                $cs = Yii::app()->getClientScript();
                $cs->registerCssFile($baseUrl.'/css/'.$this->params['ui-theme'].

Note: 'user' is always an alias for the module.

Original issue reported on code.google.com by schm...@usrbin.de on 8 Apr 2012 at 7:12