mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update admin example code
Added an additional config block to the example code to set the AdminRootController.url_base config option as well and updated the description.
This commit is contained in:
parent
720c31915f
commit
97091db863
@ -67,7 +67,7 @@ Then browse to `http://localhost:6006/`
|
||||
|
||||
## The Admin URL
|
||||
|
||||
The CMS interface can be accessed by default through the `admin/` URL. You can change this by setting your own Director routing rule to the [AdminRootController](api:SilverStripe\Admin\AdminRootController) and clear the old rule like in the example below.
|
||||
The CMS interface can be accessed by default through the `admin/` URL. You can change this by setting the `$url_base` config for the [AdminRootController](api:SilverStripe\Admin\AdminRootController), creating your own [Director](api:SilverStripe\Control\Director) routing rule and clearing the old rule as per the example below:
|
||||
|
||||
|
||||
```yml
|
||||
@ -81,6 +81,9 @@ SilverStripe\Control\Director:
|
||||
rules:
|
||||
'admin': ''
|
||||
'newAdmin': 'SilverStripe\Admin\AdminRootController'
|
||||
|
||||
SilverStripe\Admin\AdminRootController:
|
||||
url_base: 'newAdmin'
|
||||
---
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user