Hi , when I have a pdo error like a constraint viloation for example,
cakephp load pad_error.ctp.
I would rather prefer having the error message in my session set flash
I ve a fonction like that but when there is a constraint viloation it neve
redirect and it stop saying "Internal Error"
if($this->{$this->modelClass}->delete( $id )){
$this->Session->setFlash(
__('MontantRecharge_Delete_OK'),'notif',array('type' => 'success'));
}else{
$this->Session->setFlash(
__('MontantRecharge_Delete_KO'),'notif',array('type' => 'error'));
}
$this->redirect( $this->referer() );
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.