Wiki

Articles in category "tutorials"X
Displaying 21-30 of 230 result(s).

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

Created 4 months ago by KonApazTutorials4 comments – viewed 3,169 times – ( +1 / -6 ) – 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 4 months ago by Kartik VTutorials0 comments – viewed 3,008 times – ( +28 ) – 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 4 months ago by M0kaTutorials3 comments – viewed 1,222 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 4 months ago by KonApazTutorials5 comments – viewed 1,603 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 4 months ago by Kartik VTutorials5 comments – viewed 4,084 times – ( +27 / -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 4 months ago by Kartik VTutorials4 comments – viewed 3,229 times – ( +28 / -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 4 months ago by Kartik VTutorials1 comment – viewed 1,345 times – ( +31 / -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 packagist.org. You are recommended to follow the approach below:

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

Created 4 months ago by Kartik VTutorials0 comments – viewed 1,851 times – ( +29 / -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 4 months ago by Kartik VTutorials0 comments – viewed 2,598 times – ( +29 / -4 ) – 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.

What to do when composer fails to update your vendor packages?

Created 4 months ago by Kartik VTutorials0 comments – viewed 1,243 times – ( +28 / -5 ) – version 2.0
Have you faced some of these problems when using composer with your Yii 2 installation?