public function actionReadMetadata($className) { if (!Group::isUserASuperAdministrator(Yii::app()->user->userModel)) { throw new NotSupportedException(); } if (GlobalMetadata::isClassMetadataSavedInDatabase($className)) { echo 'The metadata is saved in the database ' . "<BR>"; } else { echo 'The metadata is not saved in the database ' . "<BR>"; } echo "<pre>"; print_r($className::getMetadata()); echo "</pre>"; }