Sorted by ratingX
Displaying 1-10 of 757 result(s).

Guidelines for good schema design

Created 4 years ago by Steve FriedlTips15 comments – viewed 70,525 times – ( +142 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

Searching and sorting by related model in CGridView

Created 3 years ago by Maciej LiżewskiTutorials86 comments – viewed 158,980 times – ( +125 ) – version 1.1
Lets say we have two models and relation between them:

Reference: Model rules validation

Created 5 years ago by krillzipHow-tos7 comments – viewed 617,616 times – ( +124 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

How to write secure Yii applications

Created 3 years ago by François GannazHow-tos20 comments – viewed 197,579 times – ( +107 ) – version 1.1
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

Using CButtonColumn to customize buttons in CGridView

Created 4 years ago by TrejderHow-tos18 comments – viewed 237,365 times – ( +98 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Yii for beginners

Created 3 years ago by rackyczTutorials13 comments – viewed 257,622 times – ( +97 ) – version 1.1
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.

The directory structure of the Yii project site

Created 4 years ago by qiangOthers41 comments – viewed 140,176 times – ( +85 ) – version 1.1
In this article, we describe the directory structure used by - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

How to use a single form to collect data for two or more models?

Created 6 years ago by qiangTutorials33 comments – viewed 182,325 times – ( +118 / -1 ) – version 1.1
Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code:

By Example: CHtml

Created 6 years ago by jonahTutorials15 comments – viewed 685,780 times – ( +115 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

NetBeans IDE and Yii projects

Created 5 years ago by marcovtwoutTutorials28 comments – viewed 180,993 times – ( +76 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.