Wiki

Displaying 511-520 of 784 result(s).

Managing constants easily

Created 5 years ago by briiC.lvTips4 comments – viewed 16,421 times – ( +4 / -1 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

Front-end developer's guide

Created 5 years ago by jonahTutorials5 comments – viewed 27,582 times – ( +11 / -1 ) – version 1.1
This wiki is a work in progress.

The Comedy of Errors

Created 5 years ago by fsbOthers3 comments – viewed 10,108 times – ( +21 / -1 ) – version 1.1
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.

Accessing data in a join table with the related models

Created 5 years ago by fsbHow-tos8 comments – viewed 110,666 times – ( +28 / -2 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Rendering a view file in a console application

Created 5 years ago by TompiHow-tos1 comment – viewed 12,622 times – ( +4 / -3 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

Secure password hash storage and a Yii helper extension

Created 5 years ago by fsbTutorials5 comments – viewed 31,287 times – ( +15 / -1 ) – version 1.1
Obsolete

Using counters with ActiveRecord

Created 5 years ago by davi_alexandreTips9 comments – viewed 29,721 times – ( +14 / -2 ) – 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 5 years ago by Maciej LiżewskiTutorials86 comments – viewed 194,864 times – ( +126 / -1 ) – version 1.1
Lets say we have two models and relation between them:

1:n relations sometimes require CDbCriteria.together

Created 5 years ago by fsbTips5 comments – viewed 38,686 times – ( +16 / -1 ) – 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 5 years ago by janistoTutorials0 comments – viewed 11,533 times – ( +3 / -1 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF