Wiki

Sorted by viewsX
Displaying 11-20 of 777 result(s).

Update content in AJAX with renderPartial

Created 6 years ago by BurzumTutorials17 comments – viewed 245,942 times – ( +60 ) – version 1.1
The easiest way to update content in AJAX is to use the renderPartial method.
tags: AJAX

How to write secure Yii applications

Created 4 years ago by François GannazHow-tos20 comments – viewed 221,272 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.

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

Created 7 years ago by qiangTutorials33 comments – viewed 202,700 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:

NetBeans IDE and Yii projects

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

Understanding the view rendering flow

Created 4 years ago by dckurushinFAQs16 comments – viewed 183,043 times – ( +96 / -3 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Searching and sorting by related model in CGridView

Created 4 years ago by Maciej LiżewskiTutorials86 comments – viewed 181,859 times – ( +126 ) – version 1.1
Lets say we have two models and relation between them:

Create your own Validation Rule

Created 5 years ago by nickcvHow-tos13 comments – viewed 180,741 times – ( +76 / -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.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 3 years ago by Charles R. Portwood IITutorials7 comments – viewed 178,096 times – ( +10 / -10 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

Url: hide index.php

Created 5 years ago by HermansHow-tos16 comments – viewed 161,659 times – ( +28 / -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.

How to add more information to Yii::app()->user

Created 7 years ago by qiangTutorials2 comments – viewed 161,375 times – ( +31 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.