Allows to override the default processing of not found front-end pages.
By default, when the browser requests a page not found in LemonStand, the CMS page with the url
name "/404" is displayed. Using this event, you can bypass the default behavior
returning TRUE from the event handler.
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onPageNotFound', $this, 'no_page_found');
}
public function no_page_found()
{
// Do something
//...
// To avoid displaying the CMS page with "/404" url name, return TRUE
return true;
}