yiisoft/yii — pull request #1399 by resurtm (2012-09-13 17:54:52+00:00)
Title: Fixes #1386, alters #724: the second parameter of the CHtml::value() is able to accept anonymous function

Fixes #1386, alters #724.

BC and API are all right.

Testing code:
```php

findByPk(22), function($model) {
return $model->id.$model->name;
}, 'defaultValue'); ?>

findAll(),
function($model) { return $model->id; },
function($model) { return $model->name; },
function($model) { return round($model->id/10); }
)
); ?>

```

Testing code result:
![](https://dl.dropbox.com/u/916366/github/chtml-value-testing.png)