Wiki

Sorted by date (updated)X
Displaying 91-100 of 685 result(s).

Insert a model record using CGridview

Updated 3 months ago by KonApazHow-tos0 comments – viewed 1,771 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update related models of a model using listBox and checkBoxList in the form

Updated 3 months ago by KonApazHow-tos0 comments – viewed 2,190 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

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

Updated 3 months ago by Kartik VTutorials18 comments – viewed 11,563 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.

Generate CTreeview from database table and update a model

Updated 3 months ago by KonApazHow-tos0 comments – viewed 1,375 times – ( +1 ) – version 1.1
Suppose we want to set a category to product (or an item in general term), Also suppose categories has sub-categories (multi-level)

Generate a multi-lever array sub-category for a menu

Updated 3 months ago by KonApazHow-tos7 comments – viewed 9,903 times – ( +10 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Visualization tree-multi subcategories as listbox or dropdownlist

Updated 3 months ago by KonApazHow-tos4 comments – viewed 8,893 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

Managing your nested dropdown dependency with DepDrop widget

Updated 3 months ago by Kartik VTutorials2 comments – viewed 2,408 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 Reuse File Upload Code via Behavior

Updated 3 months ago by Ahamed RifaideenHow-tos0 comments – viewed 1,523 times – ( +1 ) – version 1.1
hello guys now i am going to show you how to Reuse File Upload Code across multiple projects.

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

Updated 3 months ago by Kartik VTutorials0 comments – viewed 1,492 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,385 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.