Notice (8): Undefined offset: 1 [APP/Controller/ProductsController.php, line 52]Code Context $url= $_SERVER["REQUEST_URI"];
$data = explode("=", $url);
$search = $data[1];
$url = '/Products/search'
$data = array(
(int) 0 => '/Products/search'
)
ProductsController::search() - APP/Controller/ProductsController.php, line 52
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Notice (8): Undefined variable: products [APP/Controller/ProductsController.php, line 251]Code Context
$this->set('products', $products);
$url = '/Products/search'
$data = array(
(int) 0 => '/Products/search'
)
$search = null
ProductsController::search() - APP/Controller/ProductsController.php, line 251
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Notice (8): Undefined variable: products [APP/Controller/ProductsController.php, line 252]Code Context
$this->set('products', $products);
$this->set('products', $products, $this->Paginator->paginate());
$url = '/Products/search'
$data = array(
(int) 0 => '/Products/search'
)
$search = null
ProductsController::search() - APP/Controller/ProductsController.php, line 252
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118
Warning (2): Cannot modify header information - headers already sent by (output started at /home/wwthor/public_html/lib/Cake/Utility/Debugger.php:794) [CORE/Cake/Network/CakeResponse.php, line 449]Code Context $name, $c['value'], $c['expire'], $c['path'],
$c['domain'], $c['secure'], $c['httpOnly']
);
$name = 'CakeCookie[token]'
$c = array(
'name' => 'CakeCookie[token]',
'value' => 'Q2FrZQ==.jxJFF6elaNA=',
'expire' => (int) 0,
'path' => '/',
'domain' => '',
'secure' => false,
'httpOnly' => false
)
setcookie - [internal], line ??
CakeResponse::_setCookies() - CORE/Cake/Network/CakeResponse.php, line 449
CakeResponse::send() - CORE/Cake/Network/CakeResponse.php, line 419
Controller::redirect() - CORE/Cake/Controller/Controller.php, line 795
ProductsController::search() - APP/Controller/ProductsController.php, line 283
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118