class CategoryController extends CategoryControllerCore
{
/* FC 2023.07.10 - Para no indexar categorÃas sin contenido */
public function getTemplateVarPage()
{
$page = parent::getTemplateVarPage();
$numProduct = $this->category->getProducts(1, null, null,null,null,true);
if($numProduct){
if($numProduct<3){
//$page['meta']['robots'] = 'noindex,follow';
}
}else{
//$page['meta']['robots'] = 'noindex';
}
return $page;
}
}
Fatal error: Uncaught Error: Class "CategoryController" not found in /var/www/vhosts/lamonsita.com/bricosalvaje.com/classes/controller/Controller.php:246
Stack trace:
#0 /var/www/vhosts/lamonsita.com/bricosalvaje.com/classes/Dispatcher.php(504): ControllerCore::getController('CategoryControl...')
#1 /var/www/vhosts/lamonsita.com/bricosalvaje.com/index.php(28): DispatcherCore->dispatch()
#2 {main}
thrown in /var/www/vhosts/lamonsita.com/bricosalvaje.com/classes/controller/Controller.php on line 246