public function getDetail($id) { $model = Content::getBody(ContentPage::className(), [ 'a.id' => $id ])->one(); return [ 'model' => $model ]; }
public function init() { parent::init(); $this->content_type = 'page'; $this->bodyClass = ContentPage::className(); }