categories()->getData(); /** @var \Ppb\Service\Table\Relational\Categories $categoriesService */ $categoriesService = $this->categories()->getCategories(); if (!count($categories)) { $categories = $this->categories( $categoriesService->getTable() ->select() ->where('parent_id IS NULL') ->where('enable_auctions = ?', 1) ->where('user_id IS NULL') ->order(array('order_id ASC', 'name ASC')) ); } /** @var \Cube\Controller\Request $request */ $request = $this->request()->getRequest(); $categoryId = $request->getParam('category_id'); $parentId = $request->getParam('parent_id'); ?>