Skip to content

Commit

Permalink
Merge pull request #22 from dustinmoorman/master
Browse files Browse the repository at this point in the history
Didn't look right as I was reading it!
  • Loading branch information
Jurian Sluiman committed Mar 16, 2014
2 parents 7dab378 + b9b3e51 commit 081cc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/2.Routes.md
Expand Up @@ -25,7 +25,7 @@ To register a route as child route, the following example takes the option you n
),

## Change the `/admin` url
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):
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):

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

## Change the controller behind `/admin`
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):
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):

'router' => array(
'routes' => array(
Expand Down

0 comments on commit 081cc4b

Please sign in to comment.