Wiki

Articles in category "how-tos"X
Displaying 101-110 of 183 result(s).

Accessing data in a join table with the related models

Created about a year ago by fsbHow-tos7 comments – viewed 36,296 times – ( +18 / -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 about a year ago by TompiHow-tos1 comment – viewed 4,381 times – ( +2 )
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

Model password confirmation field.

Created about a year ago by twisted1919How-tos5 comments – viewed 24,454 times – ( +7 )
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 about a year ago by GustavoHow-tos1 comment – viewed 15,333 times – ( +16 )
How to create a simple (non-RBAC) authorization system

How to write secure Yii applications

Created about a year ago by François GannazHow-tos11 comments – viewed 69,423 times – ( +78 )
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 17,693 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 6,981 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,142 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,013 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,341 times – ( +1 / -3 )
Before reading this article, you should first learn this How to setup RBAC with a php file