October CMS
add middleware
Inside the Plugin.php file: public function boot() { CmsController::extend(function($controller) { $controller->middleware(‘foo\bar\classes\MydMiddleware’); }); }
Inside the Plugin.php file: public function boot() { CmsController::extend(function($controller) { $controller->middleware(‘foo\bar\classes\MydMiddleware’); }); }
Sometimes you want to create a root level backend menu page with lists more controller or hold some information: When i click on “Core” I want to see a page with “hello world”. I will call this “HelloController”. All we need is: the controller class config_list.yaml the hello world in index.htm Read more…
This bug in Oxid eShop prevents clean ssl certificate symbol in the browser. Bug: https://bugs.oxid-esales.com/view.php?id=5790#c9972 Solution: public function getWidgetUrl( $iLang = null, $blAdmin = null ) { $sUrl = $this->isSsl() ? $this->getSslShopUrl($iLang) : $this->getShopUrl($iLang, $blAdmin); return oxRegistry::get(‘oxUtilsUrl’)->processUrl($sUrl.’widget.php’, false); }