Wiki

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

Yii for beginners 2

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

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

Created 8 years ago by qiangTutorials2 comments – viewed 178,843 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 133,369 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 85,535 times – ( +31 / -1 ) – version 1.1
Creating Yii applications with composer

Code style

Created 7 years ago by zaccariaTips2 comments – viewed 18,333 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 44,211 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.

Multiple-database support in Yii

Created 6 years ago by Steve FriedlHow-tos18 comments – viewed 110,340 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 6 years ago by Steve FriedlHow-tos3 comments – viewed 24,414 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 38,446 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

Understanding Autoloading, Helper Classes and Helper Functions

Created 6 years ago by Steve FriedlTutorials4 comments – viewed 101,644 times – ( +29 / -1 ) – 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.