pungpoo / giix

Automatically exported from code.google.com/p/giix
0 stars 0 forks source link

The method label() should use class2name() #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The method label() should use class2name() to generate the label.

Yii::t('app', '<?php echo $this->class2name($modelClass); ?>|<?php echo 
implode(" ", array_map(array($this, 'pluralize'), explode(" ", 
$this->class2name($modelClass)))); ?>', $n);

Original issue reported on code.google.com by thiagota...@gmail.com on 29 Aug 2011 at 9:41

GoogleCodeExporter commented 8 years ago
The method is static. $this won't work. The only workaround to fix this issue 
is available only to PHP 5.3+.
Since giix supports PHP 5.2.4, I can't fix this.

Note: In the latest giix release, it generates the label automatically for each 
model. A default implementation is not needed.

Original comment by rodrigo.coelho@gmail.com on 29 Aug 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Within this scope, $this is an instance of the object GiixModelCode.

Original comment by thiagota...@gmail.com on 29 Aug 2011 at 10:14