CategoriesController::apiV1List PHP Method

apiV1List() public method

Returns the full list of categories for the APIv1.
public apiV1List ( )
    public function apiV1List()
    {
        $categories = CategoryModel::categories();
        // Purge the root category, if present.
        if (val(-1, $categories)) {
            unset($categories[-1]);
        }
        $this->setData('Categories', $categories);
        $this->render('blank', 'utility', 'dashboard');
    }