yiisoft/yii — pull request #2225 by LastDragon-ru (2013-03-19 17:50:47+00:00)
Title: Fix #129: change resolveName and getIdByName to replace namespce "\"

Fix for #129, based on #1808, differenses:

1) Fixed CActiveForm::validateTabular()
2) You can change the classname generator (this is usefull for very_very_very_very_very_very_very_very_long_model_class_name).

```php
// Custom generator
CHtml::setClassToNameConverter(function($classname) {
$module = Yii::app()->getController()->getModule();

return $module && $module->getId() !== 'gii'
? 'model_'.md5($classname)
: $classname;
});

// Getting form params
if (isset($_POST[CHtml::getNameByModel($model)])) {
// ...
}
```