Yii Framework Forum: Individual exception for one controller - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Individual exception for one controller how Rate Topic: -----

#1 User is offline   vladimircape 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 06-June 12

Posted 24 July 2012 - 10:59 AM

May be anybody knows how to disable Yii exception and use my personal exception just in one controller
try {
$model= Aricle::model();
if (!$Article) {
throw new Exception("Could not open the file!");
}
} catch (Exception $e){
$row=$e->getMessage();
}

here i just want to set up var, nothing more, no html ,nothing
Yii always start his exception in both modes,debug and product
yiif.ru - my site about yii
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users