Yii2: Posting Data via Link

This seems to be undocumented (or not so well documented) at the moment. Yii2 provides special supports which allows you to post data via clicking a link. Note: Line 3: Specifying …

Yii2: Include View Specific JavaScript

To include JavaScript for specific action, either the JavaScript code or file is to be registered in view file. Method 1: Register JavaScript File Use registerJsFile(). Note: optional position. values: POS_HEAD, POS_BEGIN, POS_END. …