Wiki

Articles in category "how-tos"X
Displaying 231-240 of 315 result(s).

Database driven Cmenu

Created 2 years ago by twisted1919How-tos0 comments – viewed 21,233 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 18,535 times – ( +9 ) – 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-tos8 comments – viewed 70,856 times – ( +26 / -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 7,881 times – ( +3 / -2 ) – 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-tos10 comments – viewed 49,665 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 24,419 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 155,318 times – ( +100 ) – 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 33,356 times – ( +20 ) – 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 11,502 times – ( +11 ) – 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-tos6 comments – viewed 20,876 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.