Moduleroutes || specific name to module controller


add moduleroute in a hook.

$this->registerHook('moduleRoutes')

public function hookModuleRoutes($params)
    {
        return [
            'module-braintreejs-paypalecerror' => [
               
                'controller' => 'paypalecerror',
                'rule' => 'pcerror',
                'keywords' => array(
                    'meta_keywords' => 'Paypal Exress Error',
                    'meta_title' => 'Paypal Exress Error',
                ),
                'params' => [
                    'fc' => 'module',
                    'module' => 'braintreejs'
                ]
            ]
        ];
    }

Comments

Popular Posts