コード例 #1
0
 public function init()
 {
     $this->name = "Управление контентом";
     $this->modelShowAttribute = "name";
     $this->modelClassName = CmsContentType::className();
     parent::init();
 }
コード例 #2
0
ファイル: CmsContent.php プロジェクト: dextercool/cms
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContentType()
 {
     return $this->hasOne(CmsContentType::className(), ['code' => 'content_type']);
 }