Page 1 of 1
How to show 404 Page from module's action
Posted: Fri Nov 09, 2012 8:55 pm
by cve
Hi, I want to know how can I show 404 page to the user when in my frontend action of module e.x. action.order.php goes wrong

Re: How to show 404 Page from module's action
Posted: Fri Nov 09, 2012 10:20 pm
by calguy1000
As of CMSMS 1.11+ you can
Code: Select all
throw new CmsError404Exception('message');
Re: How to show 404 Page from module's action
Posted: Fri Nov 09, 2012 10:23 pm
by cve
great... but what about versions prior to 1.11?
Re: How to show 404 Page from module's action
Posted: Fri Nov 09, 2012 11:19 pm
by calguy1000
short answer: upgrade.
Re: How to show 404 Page from module's action
Posted: Fri Nov 09, 2012 11:26 pm
by cve
My module must working on version 1.10.3, otherwise the upgrade to 1.11 is not that simple, cause many "standard" modules was not upgraded and are broken with 1.11 version...