Wiki

Displaying 411-420 of 677 result(s).

Searching and sorting by related model in CGridView

Created 2 years ago by redguyTutorials72 comments – viewed 116,324 times – ( +108 ) – version 1.1
Lets say we have two models and relation between them:

1:n relations sometimes require CDbCriteria.together

Created 2 years ago by fsbTips4 comments – viewed 23,849 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

How to use Flash, Zend AMF and Yii Framework

Created 2 years ago by janistoTutorials0 comments – viewed 8,125 times – ( +3 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 106,619 times – ( +71 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

Model password confirmation field.

Created 2 years ago by twisted1919How-tos10 comments – viewed 45,277 times – ( +11 / -1 ) – version 1.1
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

Simple authorization system

Created 2 years ago by GustavoHow-tos1 comment – viewed 23,210 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

How to write secure Yii applications

Created 2 years ago by Fran├žois GannazHow-tos19 comments – viewed 137,573 times – ( +98 ) – 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 validate CSRF token with session

Created 2 years ago by yangmlsHow-tos1 comment – viewed 30,661 times – ( +20 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Yii Security-extended guide

Created 2 years ago by bingjie2680Tips11 comments – viewed 14,130 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

How to re enable logging during unit testing

Created 2 years ago by AsgarothHow-tos3 comments – viewed 10,758 times – ( +11 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.