tingobol / yii-rights

Automatically exported from code.google.com/p/yii-rights
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CException on the last revision of Yii-rights and Yii-Framework #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install yii-rights on a new webapp with the lastest yii framework (svn 
source)
2. Go to www.youradress.com/index.php/rights
3. The system trow a CException

What is the expected output? What do you see instead?
Expected output: The rights page
Trow output:
CException
Descripción

El asset "E:\programacion\Yii\framework\zii\vendors\jui a ser publicado no 
existe.
What version of the product are you using? On what operating system?
last revision of yii-rights
last revision of yii framework
OS: Windows XP PHP 5.3
Please provide any additional information below.
The vendors folder do not exist on the last revisions of the yii framework. 
Istead wee have the widgets folder

Solution:
Replace the line 142:
        $juiUrl = $app->getAssetManager()->publish(Yii::getPathOfAlias('zii.vendors.jui'));

With:
        $juiUrl = $app->getAssetManager()->publish(Yii::getPathOfAlias('zii.widgets.jui'));

Original issue reported on code.google.com by charly...@gmail.com on 3 Sep 2010 at 2:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The the widgets-folder is not the same as the vendors-folder. I have updated my 
Yii and Zii and it works fine with the latest version.

Original comment by cni...@live.com on 5 Sep 2010 at 7:16

GoogleCodeExporter commented 9 years ago
Yes, i find that again (about vendors and widgets). 
Here is the last revision of the svn of Yii 

http://code.google.com/p/yii/source/browse/#svn/trunk/framework/zii

If you look there, there is no more a vendors folder on the zii folder.

On the revision 2381 of yii that folder was deleted.
"- Chg #1102: Added jQuery UI as a core client script package (Qiang)"

Now jquery-ui is a core script.
"http://code.google.com/p/yii/source/browse/#svn/trunk/framework/web/js/source/j
ui/js"
Remember that now zii is on the same repository that yii

Original comment by charly...@gmail.com on 5 Sep 2010 at 10:28

GoogleCodeExporter commented 9 years ago
Sorry for the doble post. I cannot find a way to edit my comments...
To register jquery-ui:

$cs->registerCoreScript('jquery.ui');

Original comment by charly...@gmail.com on 5 Sep 2010 at 10:42

GoogleCodeExporter commented 9 years ago
Alright, thanks for the info. This makes it a bit easier not having to publish 
additional assets. I'll change this as soon as possible.

Original comment by cni...@live.com on 6 Sep 2010 at 5:29

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r102.

Original comment by cni...@live.com on 6 Sep 2010 at 5:42