File tree 1 file changed +3
-3
lines changed
6. Developing with Adminhtml
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,14 @@ In *frontend* URLs are generated with `\Magento\Framework\Url.getUrl`:
123
123
- getUrl() -> createUrl() = getRouterUrl + ?query + #fragment
124
124
- getRouterUrl() = getBaseUrl() + ` _getRoutePath `
125
125
- getBaseUrl() example 'http://www.example.com/ '
126
- - ` _getRoutePath ` = ` _getActionPath ` + params pairs. sexample 'catalog/product/view/id/47'
127
- - ` _getActionPath ` example 'catalog/product/view'
126
+ - ` _getRoutePath ` = ` _getActionPath ` + params pairs. For example: 'catalog/product/view/id/47'
127
+ - ` _getActionPath ` example: 'catalog/product/view'
128
128
129
129
In * backend* use customized version ` \Magento\Backend\Model\Url ` :
130
130
- ` _getActionPath ` * prepends* area front name, e.g. 'kontrollpanel/catalog/product/view'.
131
131
Now all backend links have this prefix.
132
132
- getUrl() adds secret key /key/hash
133
- - can disable secret key generation with turnOffSecretKey() and revert with turnOnnSecretKey ().
133
+ - can disable secret key generation with turnOffSecretKey() and revert with turnOnSecretKey ().
134
134
Global admin config ` admin/security/use_form_key ` .
135
135
136
136
* Secret key* = ` hash($routeName . $controllerName . $actionName . $sessionFormKey) `
You can’t perform that action at this time.
0 commit comments