//lấy id catproduct theo alias $getId = $this->Catproduct->findAllBySlug($slug); $this->set("catProductName", $getId[0]["Catproduct"]["name"]);
$slug = 'new-products-1'
$getId = array()
ProductController::index() - APP/Plugin/Product/Controller/ProductController.php, line 30
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined offset: 0 [APP/Plugin/Product/Controller/ProductController.php, line 31]
ProductController::index() - APP/Plugin/Product/Controller/ProductController.php, line 31
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined offset: 0 [APP/Plugin/Product/Controller/ProductController.php, line 37]
ProductController::index() - APP/Plugin/Product/Controller/ProductController.php, line 37
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92
Notice (8): Undefined offset: 0 [APP/Plugin/Product/Controller/ProductController.php, line 38]
ProductController::index() - APP/Plugin/Product/Controller/ProductController.php, line 38
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92