public function actionIndex() { $this->assign('articles', BlogPost::getLatestPublished(isset($_GET['page']) ? $_GET['page'] : 1)); }