Wiki

Articles in category "how-tos"X
Displaying 171-180 of 255 result(s).

Database driven Cmenu

Created 2 years ago by twisted1919How-tos0 comments – viewed 19,638 times – ( +13 / -1 ) – version 1.1
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

Secure password hashing with bCrypt

Created 2 years ago by waitforitHow-tos3 comments – viewed 16,299 times – ( +7 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

Accessing data in a join table with the related models

Created 2 years ago by fsbHow-tos7 comments – viewed 59,868 times – ( +24 / -1 ) – 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 2 years ago by TompiHow-tos1 comment – viewed 6,725 times – ( +3 / -1 ) – 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.

Model password confirmation field.

Created 2 years ago by twisted1919How-tos9 comments – viewed 41,771 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 2 years ago by GustavoHow-tos1 comment – viewed 22,090 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

How to write secure Yii applications

Created 2 years ago by François GannazHow-tos19 comments – viewed 124,826 times – ( +97 ) – 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 2 years ago by yangmlsHow-tos1 comment – viewed 28,442 times – ( +19 ) – version 1.1
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 2 years ago by AsgarothHow-tos3 comments – viewed 10,153 times – ( +10 ) – version 1.1
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 2 years ago by bluyellHow-tos4 comments – viewed 18,569 times – ( +5 / -2 ) – version 1.1
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.