Wiki

Displaying 451-460 of 719 result(s).

Secure password hash storage and a Yii helper extension

Created 3 years ago by fsbTutorials5 comments – viewed 27,789 times – ( +15 ) – version 1.1
Obsolete

Using counters with ActiveRecord

Created 3 years ago by davi_alexandreTips8 comments – viewed 20,720 times – ( +14 / -1 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

Searching and sorting by related model in CGridView

Created 3 years ago by redguyTutorials75 comments – viewed 132,507 times – ( +116 ) – version 1.1
Lets say we have two models and relation between them:

1:n relations sometimes require CDbCriteria.together

Created 3 years ago by fsbTips5 comments – viewed 27,299 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 3 years ago by janistoTutorials0 comments – viewed 8,712 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 3 years ago by JobloTips13 comments – viewed 118,205 times – ( +73 ) – 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 3 years ago by twisted1919How-tos10 comments – viewed 51,924 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 3 years ago by GustavoHow-tos1 comment – viewed 24,997 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

How to write secure Yii applications

Created 3 years ago by Fran├žois GannazHow-tos19 comments – viewed 163,988 times – ( +101 ) – 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 3 years ago by yangmlsHow-tos1 comment – viewed 34,838 times – ( +21 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session