public function getPostCategoriesOptions() { return Category::lists('name', 'id'); }
/** * @return array */ public function getExcludeCategoriesOptions() { return BlogCategory::lists('name', 'id'); }
/** * Prepare vars */ public function onRun() { $this->resultPage = $this->page['resultPage'] = $this->property('resultPage'); $this->categories = $this->page['categories'] = BlogCategory::lists('name', 'id'); $this->categoryFilter = $this->page['categoryFilter'] = $this->property('categoryFilter'); }