Notice (8): Undefined index: Banner [APP/controllers/banners_controller.php, line 15]
Code |
Context$id = "19"
$banner = array()
function geturl($id){
$banner = $this->Banner->read(null, $id);
$banner['Banner']['clicks']++;
BannersController::geturl() - APP/controllers/banners_controller.php, line 15
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 268
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 240
[main] - APP/webroot/index.php, line 84
Notice (8): Undefined index: clicks [APP/controllers/banners_controller.php, line 15]
Code |
Context$id = "19"
$banner = array(
"Banner" => array()
)
function geturl($id){
$banner = $this->Banner->read(null, $id);
$banner['Banner']['clicks']++;
BannersController::geturl() - APP/controllers/banners_controller.php, line 15
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 268
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 240
[main] - APP/webroot/index.php, line 84
Notice (8): Undefined index: url [APP/controllers/banners_controller.php, line 17]
Code |
Context$id = "19"
$banner = array(
"Banner" => array(
"clicks" => 1
)
)
$banner['Banner']['clicks']++;
$this->Banner->save($banner);
$this->redirect($banner['Banner']['url']);
BannersController::geturl() - APP/controllers/banners_controller.php, line 17
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 268
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 240
[main] - APP/webroot/index.php, line 84