public function __construct() { Loader::model('system_notification'); $snl = new SystemNotificationList(); $snl->setItemsPerPage(4); $notifications = $snl->getPage(); $this->set('notifications', $notifications); $this->set('total', $snl->getTotal()); }
function view() { $snl = new SystemNotificationList(); $this->set('notifications', $snl->get()); }