Wiki

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

Understanding Scenarios

Created 3 years ago by Luke JurgsTutorials11 comments – viewed 83,248 times – ( +29 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Searching and Sorting by Count of Related Items in CGridView

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

Code style

Created 4 years ago by zaccariaTips2 comments – viewed 14,065 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,834 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 44,510 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 70,993 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.

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

Created 6 months ago by Kartik VTips0 comments – viewed 2,943 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 6 months ago by Kartik VTutorials0 comments – viewed 4,464 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 38,005 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 62,580 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.