Skip to content

Commit 081cc4b

Browse files
author
Jurian Sluiman
committed
Merge pull request #22 from dustinmoorman/master
Didn't look right as I was reading it!
2 parents 7dab378 + b9b3e51 commit 081cc4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/2.Routes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To register a route as child route, the following example takes the option you n
2525
),
2626

2727
## Change the `/admin` url
28-
If you want your admin interface at `/backend` or something else, you must override the value of the route. In the following condig, the `/admin` route value is replaced with `/backend`. Make sure this is enabled in a config where the module is registered *later* than ZfcAdmin (otherwise, the config will not overwrite ZfcAdmin's configuration):
28+
If you want your admin interface at `/backend` or something else, you must override the value of the route. In the following config, the `/admin` route value is replaced with `/backend`. Make sure this is enabled in a config where the module is registered *later* than ZfcAdmin (otherwise, the config will not overwrite ZfcAdmin's configuration):
2929

3030
'router' => array(
3131
'routes' => array(
@@ -37,7 +37,7 @@ If you want your admin interface at `/backend` or something else, you must overr
3737
),
3838

3939
## Change the controller behind `/admin`
40-
By default, the `/admin` url links to the `ZfcAdmin\Controller\AdminController` controller. It's an empty action and a simple view script is rendered. If you want, for example, create a dashboard on the admin index page, you probably need to point the route to another controller. In the following condig, the `zfcadmin` route's controller is replaced with `MyModule/Controller/AdminController` and the action is set to `dashboard`. Make sure this is enabled in a config where the module is registered *later* than ZfcAdmin (otherwise, the config will not overwrite ZfcAdmin's configuration):
40+
By default, the `/admin` url links to the `ZfcAdmin\Controller\AdminController` controller. It's an empty action and a simple view script is rendered. If you want, for example, create a dashboard on the admin index page, you probably need to point the route to another controller. In the following config, the `zfcadmin` route's controller is replaced with `MyModule/Controller/AdminController` and the action is set to `dashboard`. Make sure this is enabled in a config where the module is registered *later* than ZfcAdmin (otherwise, the config will not overwrite ZfcAdmin's configuration):
4141

4242
'router' => array(
4343
'routes' => array(

0 commit comments

Comments
 (0)