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