public function getList() { return $this->published()->findAll(['order' => 'name ASC']); }
public function latestAction() { $limit = (int) $this->document->getProperty('limit'); if (!$limit) { $limit = 3; } $this->view->entries = $this->_blog->getList(1, $limit)->getCurrentItems(); }