/** * defaults() - loads and builds the basic structure of the navigation * @return void */ private function defaults() { $this->data['categories'] = Category::buildCategoryByType('main'); $this->data['topmenu'] = Category::select('id', 'title', 'slug', 'path')->where('type', 'top')->get(); $this->data['links'] = Category::buildCategoryByType('links'); }