Wiki

Articles in category "how-tos"X
Displaying 111-120 of 189 result(s).

How to write secure Yii applications

Created about a year ago by François GannazHow-tos11 comments – viewed 72,696 times – ( +80 )
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 about a year ago by yangmlsHow-tos0 comments – viewed 18,682 times – ( +17 )
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

How to re enable logging during unit testing

Created about a year ago by AsgarothHow-tos1 comment – viewed 7,265 times – ( +7 )
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.

How to insert a Simple Dialog Box

Created about a year ago by bluyellHow-tos3 comments – viewed 13,658 times – ( +5 )
I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

File uploads in CForm (Form builder)

Created about a year ago by Luke JurgsHow-tos2 comments – viewed 21,832 times – ( +8 )
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

CPhpAuthManager - how it works, and when to use it

Created about a year ago by dckurushinHow-tos5 comments – viewed 12,750 times – ( +1 / -3 )
Before reading this article, you should first learn this How to setup RBAC with a php file

How to translate and do the translations the easy way

Created about a year ago by Roman SolomatinHow-tos3 comments – viewed 25,524 times – ( +17 / -1 )
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.
tags: i18n

Yii registry, how to use it, does it exist at all?

Created about a year ago by dckurushinHow-tos2 comments – viewed 11,813 times – ( +7 )
From time to time people ask about registry...

Authenticating against phpass hashes with Yii

Created about a year ago by Da:SourcererHow-tos18 comments – viewed 16,184 times – ( +25 )
The Portable PHP password hashing framework allows advanced password hashing offering increased security over simple MD5- or SHA1-hashed passwords. phpass is already in use in some larger projects such as WordPress (since v2.5), Drupal 7 and phpBB 3.