Code Context if($slug != $work['Work']['slug'])
$this->redirect($work['Work']['link'],301);
$d['taxonomy'] = $work['Taxonomy'];
$id = '150'
$slug = 'plv-arche'
$work = array(
'Work' => array(
'id' => '150',
'name' => 'Arche',
'content' => '',
'content2' => '',
'file' => '',
'file2' => '',
'fiche' => '',
'created' => '2014-02-19 10:33:34',
'online' => '1',
'type' => 'work',
'slug' => 'plv-arche',
'category_id' => '9',
'meta' => 'PLV Présentoir de sol Arche Valadié PLV ',
'keywords' => 'PLV, Présentoir-de-sol, arche, Valadie, Cognac',
'media_id' => '71',
'accueil' => '1',
'thumb' => '/img/uploads/2014/02/arche.jpg',
'link' => array(
'controller' => 'works',
'action' => 'show',
'id' => '150',
'slug' => 'plv-arche'
)
),
'Category' => array(
'id' => '9',
'name' => 'PLV Théatralisation',
'slug' => 'plv-theatralisation',
'content' => '',
'post_count' => '0',
'meta' => 'PLV Théatralisation ',
'keywords' => 'PLV Théatralisation',
'link' => array(
'controller' => 'categories',
'action' => 'show',
'id' => '9',
'slug' => 'plv-theatralisation'
)
),
'Media' => array(
(int) 71 => array(
'id' => '71',
'ref' => 'Work',
'ref_id' => '150',
'file' => '/img/uploads/2014/02/arche.jpg',
'position' => '0',
'type' => 'pic',
'icon' => '/img/uploads/2014/02/arche.jpg'
)
),
'Term' => array()
)
WorksController::show() - APP/Controller/WorksController.php, line 53
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 109