I am trying to show 404 error page whenever custom module has disabled by custome admin page . In single page we put 404 error template directly but more than one page if i want to show same 404 error page what i do

  • $this->norouteAction(); should do the job.
    – Roy
    Oct 15, 2015 at 12:08

1 Answer 1


Because my comment is the answer I post it again as answer so it can be accepted:

You should use $this->norouteAction();.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.