Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 1-10 of 182 result(s).

Reference: Model rules validation

Created 3 years ago by krillzipHow-tos4 comments – viewed 250,334 times – ( +84 )
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: Create a REST API

Created 2 years ago by jwernerHow-tos38 comments – viewed 103,570 times – ( +86 / -1 )
This article will explain how to create a REST API with the Yii framework.

Using CButtonColumn to customize buttons in CGridView

Created 2 years ago by TrejderHow-tos15 comments – viewed 102,561 times – ( +81 )
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.

How to write secure Yii applications

Created about a year ago by François GannazHow-tos11 comments – viewed 68,537 times – ( +78 )
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.

Create your own Validation Rule

Created 2 years ago by nickcvHow-tos8 comments – viewed 61,745 times – ( +58 )
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.

Url: hide index.php

Created about a year ago by HermansHow-tos13 comments – viewed 42,876 times – ( +17 )
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

Cookie management in Yii

Created 2 years ago by TrejderHow-tos4 comments – viewed 42,556 times – ( +39 / -1 )
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

Uploading multiple images with CMultiFileUpload

Created 2 years ago by rsinghHow-tos11 comments – viewed 41,753 times – ( +33 )
"The documentation for CMultiFileUpload isn't clear!"

How to setup RBAC with a php file

Created 3 years ago by bettorHow-tos12 comments – viewed 38,111 times – ( +24 / -4 )
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Creating a CSS Driven Drop Down Menu using CMenu

Created about a year ago by blindMoeHow-tos7 comments – viewed 36,035 times – ( +19 / -1 )
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.