//lấy id catproduct theo alias $getId = $this->Catproduct->findAllByAlias($alias); $this->set("catProductName", $getId[0]["Catproduct"]["name"]);
$alias = null
$getId = array()
ProductController::index() - APP/Plugin/Product/Controller/ProductController.php, line 29
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 93
Notice (8): Undefined offset: 0 [APP/Plugin/Product/Controller/ProductController.php, line 30]
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 93