M
M
Mikhail Osher2012-07-13 18:47:45
Yii
Mikhail Osher, 2012-07-13 18:47:45

How to defeat CClientScript?

calling

<?php Yii::app()->clientScript->registerPackage('ucc'); ?><br>

Here is the config
'clientScript' => array(<br>
                'packages' => array(<br>
                    'ucc' => array(<br>
                        'js' => array('js/ucc.js'),<br>
                        'css' => array('css/ucc.css'),<br>
                    ),<br>
                ),<br>
            ),<br>

The scripts are in
application/assets/js/ucc.js and application/assets/css/ucc.css respectively.
Question. Why are they not rendering? I only render the default folder with jQuery along the path <docroot>/assets (by the way, why? I don’t touch it at all ..)
What am I doing wrong? :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2012-07-13
@miraage

                    'ucc' => array(
                        'basePath' => 'application.assets',
                        'js' => array('js/ucc.js'),
                        'css' => array('css/css.css'),
                    ),

Sorry, I'm dumb today.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question