Wiki articles tagged with "CClientScript"

Showing 1-2 of 2 items.
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Alternatively, inline assets (JS/CSS) can be registered at runtime from within the View. For example you can clearly simulate the ajaxLink feature using a inline javascript. Its however recommended if you can merge where possible, client code (JS/CSS) into separate JS/CSS files and loaded through the AssetBundle. Note there is no more need of a CClientScript anymore:

0 2
Viewed: 28 531 times
Version: 2.0
Category: FAQs
Created 4 years ago by nineinchnick, updated 4 months ago by CeBe.

Clean JavaScript code in your views

This tutorial presents a way of separating JS code from views and passing to it values from PHP.

18 0
Viewed: 32 960 times
Version: all
Category: Tutorials