March 10 2013

Yii rules numerical minimum or maximum display error message

Tagged Under :

Yii
Normally in Yii model rules validation to set the error message like below:
array('username', 'required', 'message'=>'username cannot blank.');

But, numerical validate method is different if you set the ‘min‘ or ‘max‘ inside the rules.

February 01 2013

Yii PHPUnit CLI has stopped working

Tagged Under : ,

PHPUnit
Few day ago I install PHPUnit3.7 on my PC. and I follow phpunit.de instruction install on my PC.

So far everything working properly. But when I try run it on Yii, it pop out an alert message “CLI has stopped working”.