Question:How and where can you add a client side script in YII? 

Answer The index view is rendered by the index action and is used to initialize the application and provide a do Template that is used for rendering on the client side. We can use it by following way : Yii::app()->clientScript->registerPackage('todo'); 

+ Report
Total Preview: 708
How and where can you add a client side script in YII?
Copyright © 2024. Powered by Intellect Software Ltd