public function getBlockPage($key) { $content = ''; $block = Kiwi::getBlock()->find()->where(['key' => $key, 'status' => 1])->one(); if ($block) { $content = $block->content; } return $content; }
public function getModel() { return Kiwi::getBlock(); }