function index() { $model = new Blog_Model(); $this->view->categories = $model->getAllCategories(array("name")); $this->view->posts = $model->getRecentPosts(); $this->view->render('blog/index'); }