Wiki

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

Reference: Model rules validation

Created 8 years ago by krillzipHow-tos7 comments – viewed 760,072 times – ( +128 / -1 ) – 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: Create a REST API

Created 6 years ago by jwernerHow-tos57 comments – viewed 370,284 times – ( +113 / -2 ) – 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 7 years ago by TrejderHow-tos19 comments – viewed 296,579 times – ( +101 / -1 ) – 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.

Multiple files uploader with CMultiFileUpload

Created 4 years ago by InterboyHow-tos2 comments – viewed 268,041 times – ( +8 / -1 ) – version all
Today I will show you how to handle multiple file upload step by step.

How to write secure Yii applications

Created 6 years ago by Fran├žois GannazHow-tos20 comments – viewed 247,822 times – ( +108 / -1 ) – 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 6 years ago by nickcvHow-tos14 comments – viewed 208,763 times – ( +76 / -4 ) – 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 6 years ago by HermansHow-tos16 comments – viewed 200,733 times – ( +28 / -2 ) – 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.

Displaying, Sorting and Filtering Model Relations on a GridView

Created 3 years ago by Antonio RamirezHow-tos18 comments – viewed 172,151 times – ( +46 / -1 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 2 years ago by skwordenHow-tos18 comments – viewed 150,279 times – ( +28 / -1 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Cookie management in Yii

Created 7 years ago by TrejderHow-tos5 comments – viewed 147,557 times – ( +43 / -2 ) – 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.