Wiki

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

Guidelines for good schema design

Created 3 years ago by Steve FriedlTips14 comments – viewed 65,931 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 148,214 times – ( +124 ) – 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 584,819 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-tos19 comments – viewed 185,398 times – ( +104 ) – 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 223,827 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 243,765 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 qiangOthers40 comments – viewed 132,462 times – ( +84 ) – version 1.1
In this article, we describe the directory structure used by yiiframework.com - 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 172,490 times – ( +116 / -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 5 years ago by jonahTutorials15 comments – viewed 645,797 times – ( +113 / -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 4 years ago by marcovtwoutTutorials28 comments – viewed 176,030 times – ( +76 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in NetBeans IDE.