Wiki

Sorted by ratingX
Displaying 51-60 of 707 result(s).

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 30,563 times – ( +29 ) – version 1.1
Let's say we have two models and relation between them:

Code style

Created 3 years ago by zaccariaTips2 comments – viewed 13,802 times – ( +29 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Enforcing "You must agree" requirements in forms

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 16,336 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

Creating Yii applications with composer

Created 2 years ago by schmunkTutorials2 comments – viewed 42,276 times – ( +29 ) – version 1.1
Creating Yii applications with composer

Understanding Autoloading, Helper Classes and Helper Functions

Created 3 years ago by Steve FriedlTutorials4 comments – viewed 68,726 times – ( +29 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials12 comments – viewed 26,939 times – ( +29 ) – 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.

Model validation for field ranges using yii2-field-range extension

Created 5 months ago by Kartik VTips0 comments – viewed 2,183 times – ( +29 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Relational data fields display and edit with the yii2-detail-view extension

Created 5 months ago by Kartik VTutorials0 comments – viewed 3,079 times – ( +29 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Yii for beginners 2

Created about a year ago by rackyczTutorials2 comments – viewed 36,506 times – ( +29 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Working with CGridView in Admin Panel

Created 2 years ago by vibhaJadwaniTutorials18 comments – viewed 60,852 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.