ported inflection methods from StringHelper to Inflector helper class

This commit is contained in:
Antonio Ramirez
2013-05-22 08:34:17 +02:00
parent 5cc22e95cb
commit 641e6ee7cf
4 changed files with 5 additions and 136 deletions

View File

@@ -9,7 +9,7 @@ namespace yii\base;
use ArrayObject;
use ArrayIterator;
use yii\helpers\StringHelper;
use yii\helpers\Inflector;
use yii\validators\RequiredValidator;
use yii\validators\Validator;
@@ -504,7 +504,7 @@ class Model extends Component implements \IteratorAggregate, \ArrayAccess
*/
public function generateAttributeLabel($name)
{
return StringHelper::camel2words($name, true);
return Inflector::camel2words($name, true);
}
/**