src/ShopBundle/objects/db/TShopModuleArticleListFilter/TShopModuleArticlelistFilterSearch.class.php
public function ModuleInitHook()
    {
        parent::ModuleInitHook();
        $oShop = TdbShop::GetInstance();
        if ($oShop->fieldRedirectToNotFoundPageProductSearchOnNoResults) {
            // in this case the shop may redirect after running the search. since this occurs in the Execute of the module, we need
            // to prevent any other output from being auto-sent to the browser
            TGlobal::GetController()->SetBlockAutoFlushToBrowser(true);
        }
    }
public function ModuleInitHook()
    {
        parent::ModuleInitHook();
        $oShop = TdbShop::GetInstance();
        if ($oShop->fieldRedirectToNotFoundPageProductSearchOnNoResults) {
            // in this case the shop may redirect after running the search. since this occurs in the Execute of the module, we need
            // to prevent any other output from being auto-sent to the browser
            TGlobal::GetController()->SetBlockAutoFlushToBrowser(true);
        }
    }
public function ModuleInitHook ( ) { parent :: ModuleInitHook ( ) ; $ oShop = TdbShop :: GetInstance ( ) ; if ( $ oShop -> fieldRedirectToNotFoundPageProductSearchOnNoResults ) { // in this case the shop may redirect after running the search. since this occurs in the Execute of the module, we need // to prevent any other output from being auto-sent to the browser TGlobal :: GetController ( ) -> SetBlockAutoFlushToBrowser ( true ) ; } }
is called when the module initializes.
is called when the module initializes .