Wiki

Sorted by commentsX
Displaying 71-80 of 685 result(s).

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos11 comments – viewed 116,804 times – ( +72 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials11 comments – viewed 23,491 times – ( +28 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

jQuery UI Datepicker

Created about a year ago by softarkHow-tos11 comments – viewed 43,756 times – ( +12 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Caching the config main.php

Created 2 years ago by dckurushinTutorials11 comments – viewed 11,254 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!

Shrink Yii, help your IDE and speed up copying

Created 2 years ago by dckurushinTips11 comments – viewed 8,315 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

How to set up Unicode

Created 5 years ago by MikeHow-tos10 comments – viewed 59,727 times – ( +18 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

How to work with flash messages

Created 5 years ago by pfthTutorials10 comments – viewed 152,714 times – ( +57 ) – version 1.1
Set your messages in a controller:

Model password confirmation field.

Created 2 years ago by twisted1919How-tos10 comments – viewed 45,976 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

A very easy way to setup yiic on WAMP server (without extra windows settings)

Created about a year ago by KonApazTutorials10 comments – viewed 17,416 times – ( +5 / -1 ) – version 1.1
Assuming that you have already install the wampserver on your windows.

Organize directories for applications with front-end and back-end

Created 5 years ago by qiangTutorials10 comments – viewed 59,024 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.