Articles in category "tutorials"X
Displaying 41-50 of 251 result(s).

Migration the database schema to another one

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials2 comments – viewed 3,562 times – ( +1 ) – version 1.1
In this wiki I will show how to copy a schema from a database to another one

Save or Update Multiple related model values in one Tabular input form

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials4 comments – viewed 17,506 times – ( +1 / -7 ) – version 1.1
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 2 years ago by Kartik VTutorials1 comment – viewed 37,432 times – ( +37 / -1 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Profiling user requests

Created 2 years ago by M0kaTutorials3 comments – viewed 2,915 times – ( +1 ) – version 1.1
How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

shortcut/usefull access roles methods RBAC

Created 2 years ago by Kostas Apazidis (KonApaz)Tutorials5 comments – viewed 5,357 times – ( +1 ) – version 1.1
These are functions that I used very often, may helps you!

Filter & Sort by Summary Data in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials7 comments – viewed 35,692 times – ( +40 / -4 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Managing your nested dropdown dependency with DepDrop widget

Created 2 years ago by Kartik VTutorials6 comments – viewed 19,388 times – ( +37 / -5 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

Using your own forked version of extensions with composer

Created 2 years ago by Kartik VTutorials3 comments – viewed 8,177 times – ( +39 / -4 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on You are recommended to follow the approach below:

How to store array/widget configuration to the database with config validation rules

Created 2 years ago by Kartik VTutorials0 comments – viewed 6,102 times – ( +39 / -4 ) – version 2.0
You may have scenarios, where you want to store a specific array configuration to the database. A classic example could be saving Yii widget configuration to the database and then retrieving it at runtime, with dynamic parameters set. This wiki discusses one of the approaches to do this. Let's consider you have something like the NavBar configuration below to store in the db:

Handling tabular data loading and validation in Yii 2

Created 2 years ago by Kartik VTutorials6 comments – viewed 32,033 times – ( +44 / -6 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.