Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
Because my comment is the answer I post it again as answer so it can be accepted:
You should use $this->norouteAction();.
Required, but never shown
3 years, 9 months ago
2 years, 6 months ago