Yii Framework Forum: Pass parameters to exception - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Pass parameters to exception Rate Topic: -----

#1 User is offline   oligalma 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 419
  • Joined: 07-April 12
  • Location:Spain

Posted 15 January 2015 - 11:37 PM

I tried with no success to pass parameters to Exception object. For example:

throw new CHttpException(404, 'The message', array('param1' => 'value1', 'param2' => 'value2');


Yii staff should add this functionality
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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