Wiki

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

Searching and Sorting by Count of Related Items in CGridView

Created 2 years ago by softarkHow-tos13 comments – viewed 31,497 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,072 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,868 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,610 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 71,087 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 7 months ago by Kartik VTips0 comments – viewed 2,969 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,519 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,064 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,635 times – ( +43 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

How to add more information to Yii::app()->user

Created 5 years ago by qiangTutorials2 comments – viewed 124,421 times – ( +28 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.