Showing 141-160 of 652 items.

TDD with PHPUnit_Story and Yii

Created 14 years ago by sidewinder sidewinder, updated 14 years ago by sidewinder sidewinder. 1 comment

Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.

Understanding Virtual Attributes and get/set methods

Created 15 years ago by Steve Friedl Steve Friedl, updated 14 years ago by GOsha GOsha. 20 comments

When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

class Comment extends CActiveRecord {
    public $helperVariable;
    public function rules() { ... }
    ...
}

and then use them in the obvious way:

$var   = $model->helperVariable;
$rules = $model->rules();

This part everybody understa...

66 0
44
Viewed: 219 675 times
Version: 1.1
Category: Tutorials

How to re enable logging during unit testing

Created 14 years ago by Asgaroth Asgaroth, updated 14 years ago by Asgaroth Asgaroth. 3 comments

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.

11 0
10
Viewed: 29 388 times
Version: 1.1
Category: How-tos

Increasing AR performance in connections with Oracle

Created 15 years ago by Trejder Trejder, updated 14 years ago by igorsantos07 igorsantos07. 14 comments

Please, note. This article is entirely based on a work done by me colleague developer, who hasn't got account on this webpage and also hasn't got time for writing this article. I'm writing it for him. I will try to forward him any comments that may appear, but can't assure if/when he'll be able to answer. I'm far, far less experienced in Oracle therefore I won't probably be able to help myself.

1 0
15
Viewed: 63 090 times
Version: 1.1
Category: How-tos

Manage application configuration in different modes

Created 17 years ago by qiang qiang, updated 14 years ago by 张 迪 张 迪. 5 comments

Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...

15 0
15
Viewed: 76 510 times
Version: 1.1
Category: Tutorials