Showing 141-160 of 652 items.

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 12 years ago by Rajith R Rajith R, updated 12 years ago by Rajith R Rajith R. 0 comments

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

3 0
5
Viewed: 50 285 times
Version: 1.1
Category: Tutorials

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 13 years ago by Maug Lee Maug Lee, updated 12 years ago by yugene yugene. 2 comments

Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Implementation

<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dat...
7 0
4
Viewed: 60 096 times
Version: 1.1
Category: How-tos

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 775 times
Version: 1.1
Category: How-tos

DB Driven CMenu (Widget)

Created 12 years ago by Preacher Preacher, updated 12 years ago by Preacher Preacher. 0 comments

Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:

1 0
1
Viewed: 9 250 times
Version: 1.1
Category: Tutorials