Wiki

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

Reference: Model rules validation

Created 5 years ago by krillzipHow-tos7 comments – viewed 526,528 times – ( +121 ) – 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 include Javascript, CSS

Created about a year ago by InterboyHow-tos3 comments – viewed 302,731 times – ( +9 / -2 ) – version 1.1
There are many methods that we can include javascript, css into your Yii App. Today I will demonstrate three simple and helpul methods.

Multiple files uploader with CMultiFileUpload

Created about a year ago by InterboyHow-tos2 comments – viewed 247,287 times – ( +7 ) – version all
Today I will show you how to handle multiple file upload step by step.

How-To: Create a REST API

Created 3 years ago by jwernerHow-tos55 comments – viewed 229,797 times – ( +107 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Using CButtonColumn to customize buttons in CGridView

Created 4 years ago by TrejderHow-tos17 comments – viewed 201,206 times – ( +97 ) – 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.

How to write secure Yii applications

Created 3 years ago by Fran├žois GannazHow-tos19 comments – viewed 161,005 times – ( +100 ) – 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.

Create your own Validation Rule

Created 3 years ago by nickcvHow-tos12 comments – viewed 130,357 times – ( +75 / -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.

Url: hide index.php

Created 3 years ago by HermansHow-tos16 comments – viewed 104,875 times – ( +27 / -1 ) – version 1.1
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.

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos2 comments – viewed 98,492 times – ( +40 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Cookie management in Yii

Created 3 years ago by TrejderHow-tos5 comments – viewed 92,066 times – ( +41 / -1 ) – version 1.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.