Yii2.0 framework model is designed in very comfortable way for dynamic logic based on scenario. In this tutorial i will share my experience about Scenarios. A model may be used in different scenarios in different business rules and logic.
This tutorial will help you to hide the record delete button from CGridView if the record is used in other tables using relation concept.
CSqlDataProvider implements a data provider based on a plain SQL statement. This tutorial will help you to display the custom sql query result into cgridview as normal crud view.
This tutorial will help you to upload the image with image extension validation, image size validation and image dimension validation. So we can fix the width and height for image.
CBreadcrumbs displays a list of links indicating the position of the current page in the whole website. To use CBreadcrumbs, one usually needs to configure its links property, which specifies the links to be displayed.
We are listing of all the major shortcut keys in Microsoft Word. See the computer shortcut page if you are looking for other shortcut keys used in other programs.
We are listing of all the major shortcut keys in Microsoft Excel. See the computer shortcut page if you are looking for other shortcut keys used in other programs.
Scenarios validation is the one of the useful future in yii framwork and seperating the validation on any class derived from CModel. For example user registeration and updation will have different validation
MyActiveDataProvider concept with extends of CActiveDataProvider will be used to execute the custom query result and to display that result in CGridView