I am using Yii framework and i want to generate 404
error if no recode found in database.
Is there any smart way so that Yii default error handler
should be invoked.
thanks in advance.
throw new CHttpException(404,'The specified post cannot be found.');
http://www.yiiframework.com/doc/guide/1.1/en/topics.error
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With