Wiki

Sorted by ratingX
Displaying 61-70 of 786 result(s).

Yii for beginners 2

Created 4 years ago by rackyczTutorials2 comments – viewed 56,910 times – ( +32 / -1 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

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

Created 9 years ago by qiangTutorials2 comments – viewed 181,804 times – ( +31 / -1 ) – 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.

Understanding Scenarios

Created 6 years ago by Luke JurgsTutorials12 comments – viewed 136,439 times – ( +31 / -1 ) – 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.

Creating Yii applications with composer

Created 5 years ago by schmunkTutorials3 comments – viewed 88,090 times – ( +31 / -1 ) – version 1.1
Creating Yii applications with composer

Code style

Created 7 years ago by zaccariaTips2 comments – viewed 18,648 times – ( +30 / -1 ) – 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

Filter / Search with CListView

Created 6 years ago by JohnPollardHow-tos9 comments – viewed 45,005 times – ( +30 / -1 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 3 years ago by Kartik VTutorials2 comments – viewed 54,880 times – ( +38 / -2 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Multiple-database support in Yii

Created 7 years ago by Steve FriedlHow-tos18 comments – viewed 112,366 times – ( +29 / -1 ) – version 1.1
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Enforcing "You must agree" requirements in forms

Created 7 years ago by Steve FriedlHow-tos3 comments – viewed 24,817 times – ( +29 / -1 ) – 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

URL management for Websites with secure and nonsecure pages

Created 5 years ago by qiangHow-tos12 comments – viewed 39,428 times – ( +29 / -1 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL