0

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 '15 at 12:08
2

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, privacy policy and cookie policy

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