Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $error = new ArrayObject(array(), ArrayObject::ARRAY_AS_PROPS);
- $error->request = clone $this->_request;
- $error->type = 'bad-request';
- $error->exception = new RuntimeException("Invalid parameters encountered.");
- $this->_request->setParam('error_handler', $error);
- $this->_forward('error','error','default');
Add Comment
Please, Sign In to add comment