While RBAC allows you to define collection of permissions for your application, sometimes you just want something simpler to control access to certain pages. The simplest way to define your own access rule without using RBAC is to make use of $matchCallback property when definining Access Control rules. In behaviors() function in Controller or Module:
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 the method, eg ‘GET’, ‘POST’, ‘PUT’ Line 4: Data to be posted. To get posted data in the action:
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 code.
Want to navigate through the grids or trying to sort and filter data without waiting for the entire page to load? You need yii\widgets\Pjax and wrap it around GridView.