Code Context if($slug != $work['Work']['slug'])
$this->redirect($work['Work']['link'],301);
$d['taxonomy'] = $work['Taxonomy'];
$id = '166'
$slug = 'tourniquet'
$work = array(
'Work' => array(
'id' => '166',
'name' => 'Tourniquet',
'content' => '',
'content2' => '',
'file' => '',
'file2' => '',
'fiche' => '',
'created' => '2014-02-19 12:22:42',
'online' => '1',
'type' => 'work',
'slug' => 'tourniquet',
'category_id' => '8',
'meta' => 'PLV Présentoir de sol tourniquet Valadié PLV ',
'keywords' => 'PLV, présentoir de sol , tourniquet, Valadie, Cognac',
'media_id' => '70',
'accueil' => '0',
'thumb' => '/img/uploads/2014/02/isotoner.jpg',
'link' => array(
'controller' => 'works',
'action' => 'show',
'id' => '166',
'slug' => 'tourniquet'
)
),
'Category' => array(
'id' => '8',
'name' => 'Présentoir de sol',
'slug' => 'presentoir-de-sol',
'content' => '',
'post_count' => '0',
'meta' => '',
'keywords' => '',
'link' => array(
'controller' => 'categories',
'action' => 'show',
'id' => '8',
'slug' => 'presentoir-de-sol'
)
),
'Media' => array(
(int) 70 => array(
'id' => '70',
'ref' => 'Work',
'ref_id' => '166',
'file' => '/img/uploads/2014/02/isotoner.jpg',
'position' => '0',
'type' => 'pic',
'icon' => '/img/uploads/2014/02/isotoner.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