28-10-2008, 05:18 PM
Voici le code de la page action.class.php qui se situe dans le cache (je n'ai surchargé aucune classe):
Code PHP :
<?php
public function executeEdit()
{
$this->fabriquer_typebatiment = $this->getFabriquerTypebatimentOrCreate();
if ($this->getRequest()->isMethod('post'))
{
$this->updateFabriquerTypebatimentFromRequest();
try
{
$this->saveFabriquerTypebatiment($this->fabriquer_typebatiment);
}
catch (PropelException $e)
{
$this->getRequest()->setError('edit', 'Could not save the edited Fabriquer typebatiments.');
return $this->forward('FabriquerTypebatiment', 'list');
}
$this->getUser()->setFlash('notice', 'Your modifications have been saved');
if ($this->getRequestParameter('save_and_add'))
{
return $this->redirect('FabriquerTypebatiment/create');
}
else if ($this->getRequestParameter('save_and_list'))
{
return $this->redirect('FabriquerTypebatiment/list');
}
else
{
return $this->redirect('FabriquerTypebatiment/edit?typebatiment_id='.$this->fabriquer_typebatiment->getTypebatimentId().'&ressource_id='.$this->fabriquer_typebatiment->getRessourceId());
}
}
else
{
$this->labels = $this->getLabels();
}
}