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: Processing jQuery Ajax

This is skeleton code example on posting form data in JSON format processing by Yii’s controller action. Although this example uses Yii, the code can be easily adaped to pure PHP …

Yii2: Typeahead widget

In Yii V1, you use CJuiAutoComplete widget which displays an autocomplete field. There’s equivalent widget in Yii2 but I’ve not tried it yet because I tried something developed by external parties before I knew …

Yii2: SQL of an Active Query

There are 2 ways to see actual SQL query. Method 1: via Debug Module If debug is enabled, you can find SQL query along with many other useful debug information. …