Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 31-40 of 228 result(s).

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

Updated 3 months ago by KonApazTutorials4 comments – viewed 1,867 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 ?

shortcut/usefull access roles methods RBAC

Updated 3 months ago by KonApazTutorials5 comments – viewed 1,287 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

Updated 3 months ago by Kartik VTutorials5 comments – viewed 2,842 times – ( +24 / -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.

Simple Ajax popup

Updated 3 months ago by Rajith RTutorials1 comment – viewed 19,366 times – ( +10 ) – version 1.1
Simple Ajax popup view with Ajax link

Searching and sorting by related model in CGridView

Updated 3 months ago by KonApazTutorials74 comments – viewed 120,471 times – ( +109 ) – version 1.1
Lets say we have two models and relation between them:

Filter & Sort by calculated/related fields in GridView Yii 2.0

Updated 3 months ago by Kartik VTutorials18 comments – viewed 11,526 times – ( +29 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Managing your nested dropdown dependency with DepDrop widget

Updated 3 months ago by Kartik VTutorials2 comments – viewed 2,400 times – ( +25 / -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.

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

Updated 3 months ago by Kartik VTutorials0 comments – viewed 1,486 times – ( +26 / -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:

Drills : Search by a HAS_MANY relation

Updated 3 months ago by softarkTutorials11 comments – viewed 24,360 times – ( +28 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Relational Query - Lazy Loading and Eager Loading / with and together

Updated 3 months ago by softarkTutorials9 comments – viewed 15,861 times – ( +13 ) – version 1.1
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.