2

osc_has_categories()

[php]osc_has_categories()[/php]

Let you know if there are more categories in the list. If categories are not loaded, this function will load them.

Code osc_has_categories():

[php]

function osc_has_categories() {
if ( !View::newInstance()->_exists(‘categories’) ) {
View::newInstance()->_exportVariableToView(‘categories’, Category::newInstance()->toTree() );
}
return View::newInstance()->_next(‘categories’);
}

/**
*
* @return boolean
*/

[/php]