Wiki

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

Yii for beginners 2

Created 4 years ago by rackyczTutorials2 comments – viewed 54,582 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 174,257 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 5 years ago by Luke JurgsTutorials12 comments – viewed 128,385 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 4 years ago by schmunkTutorials2 comments – viewed 81,119 times – ( +31 / -1 ) – version 1.1
Creating Yii applications with composer

Code style

Created 6 years ago by zaccariaTips2 comments – viewed 17,883 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

Multiple-database support in Yii

Created 6 years ago by Steve FriedlHow-tos18 comments – viewed 107,024 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 23,777 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 4 years ago by qiangHow-tos12 comments – viewed 36,866 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 98,977 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.

Filter / Search with CListView

Created 5 years ago by JohnPollardHow-tos9 comments – viewed 43,097 times – ( +29 / -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.