Showing 221-240 of 652 items.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 15 years ago by Antonio Ramirez Antonio Ramirez, updated 15 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 2 comments

The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...

11 1
9
Viewed: 31 354 times
Version: 1.1
Category: Tutorials

Authenticating against phpass hashes with Yii

Created 15 years ago by Da:Sourcerer Da:Sourcerer, updated 12 years ago by Da:Sourcerer Da:Sourcerer. 18 comments
  • iteration_count_log2 controls the number of iterations for key stretching. A setting of 8 means the hash algorithm will be applied 2^8 = 256 times. This setting should be kept between 4 and 31.
  • portable_hashes controls whether portable hashes should be used or not. Portable hashes are salted MD5 hashes prefixed by $P$.
22 0
28
Viewed: 46 806 times
Version: 1.1
Category: How-tos

How to translate and do the translations the easy way

Created 15 years ago by Roman Solomatin Roman Solomatin, updated 10 years ago by Roman Solomatin Roman Solomatin. 3 comments

I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

Special $variables in CGridView and CListView

Created 15 years ago by Steve Friedl Steve Friedl, updated 15 years ago by Steve Friedl Steve Friedl. 11 comments

The popular [CListView] and [CGridView] widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

23 1
33
Viewed: 82 582 times
Version: 1.1
Category: Tips