public function beforeRender($action) { if ($action == 'update') { $id = (int) $_GET['id']; $this->tabs = array(array('label' => 'Général', 'url' => array('admin/update', 'id' => $id), 'controller' => 'admin'), array('label' => 'Description', 'url' => array('adminintroduction/update', 'id' => $id), 'controller' => 'adminintroduction'), array('label' => 'Formulaire', 'url' => array('adminform/update', 'id' => $id), 'controller' => 'adminform'), array('label' => 'Page confirmation', 'url' => array('adminconfirmation/update', 'id' => $id), 'controller' => 'adminconfirmation'), array('label' => 'Page conclusion', 'url' => array('adminconclusion/update', 'id' => $id), 'controller' => 'adminconclusion'), array('label' => 'Résultats', 'url' => array('adminresults/admin', 'id' => $id), 'controller' => 'adminresults')); } return parent::beforeRender($action); }