function renderStringProperty($matches) { if ($matches[1] == 'label') { return $this->renderLabel(); } elseif ($matches[1] == 'control') { return $this->renderControl(); } return parent::renderStringProperty($matches); }