This commit is contained in:
Qiang Xue
2013-01-28 18:51:36 -05:00
parent 5855b7c1b2
commit 0d21ee67cb
6 changed files with 90 additions and 76 deletions

View File

@ -312,7 +312,7 @@ class HelpController extends Controller
{
$options = array();
foreach ($class->getProperties() as $property) {
if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() === 'yii\base\Controller') {
if (!$property->isPublic() || $property->isStatic() || $property->getDeclaringClass()->getName() !== get_class($controller)) {
continue;
}
$name = $property->getName();