Difference between #5 and #6 of
Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Revision #6 has been created by Kartik V on May 6, 2014, 6:05:35 AM with the memo:

Elaborate description
« previous (#5)

Changes

Title unchanged

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

Category unchanged

FAQs

Yii version unchanged

Tags unchanged

yii, yii2, client, clientscript, ajax, CClientScript, assets, ajaxlink

Content changed

[...]
Solution
--------
You can easily create and combine all such client helpers for your need into separate JS files. Use the new [AssetBundle and AssetManager](http://www.yiiframework.com/doc-2.0/guide-assets.html "") functionality with the View object in Yii2, to manage these assets and how they are loaded.

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:


```php
$script = <<< JS
[...]
1 2
41 followers
Viewed: 43 324 times
Version: 2.0
Category: FAQs
Written by: Kartik V
Last updated by: Kartik V
Created on: May 6, 2014
Last updated: 9 years ago
Update Article

Revisions

View all history