55565758596061626364656667686970717273 }
public function actionView($handle = '', $id = NULL)
{
$admin_handle = 'news';
$this->detect_sections($admin_handle);
$this->make_breadcrumbs(true);
$item = News::findOne(['handle'=>$handle]);
$blocks = $item->getBlocks()->published()->all();
$this->pageTitle = $item->title;
$this->pageDate = $item->date;
$items_related = News::find()->published()->limit(3)->andWhere(['<>', 'id', $item->id])->all();
return $this->render('view.twig', compact('item', 'blocks', 'items_related'));
}
}