-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from visto9259/2.0.x
Updated docs for v2
- Loading branch information
Showing
18 changed files
with
502 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,34 @@ | ||
--- | ||
sidebar_position: 1 | ||
--- | ||
# Introduction | ||
LmcAdmin is a low-level module that helps Laminas MVC Framework developers to create an admin interface. The module allows to have a uniform layout, navigation structure and routing scheme. You can create controllers routed as a child of LmcAdmin, so you can easily change the (root) url, access control and other properties. The navigation is also flexible, to allow you having a structure built of pages in the admin interface with menus, breadcrumbs and other links. | ||
# Getting Started | ||
LmcAdmin is a low-level module that helps Laminas MVC Framework developers to create an admin interface. | ||
The module allows to have a uniform layout, navigation structure and routing scheme. | ||
You can create controllers routed as a child of LmcAdmin, so you can easily change the (root) url, access control | ||
and other properties. | ||
The navigation is also flexible, to allow you having a structure built of pages in the admin interface with menus, | ||
breadcrumbs and other links. | ||
|
||
## Requirements | ||
|
||
- PHP 8.1 and later | ||
- Laminas MVC 3.0 or later | ||
|
||
## Installation | ||
|
||
Install the module: | ||
|
||
$ composer require lm-commons/lmc-admin | ||
|
||
You will be prompted by the laminas-component-installer plugin to inject LM-Commons\LmcAdmin. | ||
|
||
:::note[Manual installation:] | ||
|
||
Enable the module by adding `Lmc\admin` key to your `application.config.php` or `modules.config.php` file for Laminas MVC | ||
applications. | ||
::: | ||
|
||
Customize the module by copy-pasting | ||
the `config/lmcadmin.global.php.dist` file to your `config/autoload` folder. | ||
|
||
Every part of LmcAdmin is customizable. In the pages listed below futher configuration options are explained. This documentation consists of the following pages: | ||
|
||
1. [Introduction](Introduction) | ||
2. [Routes](Routes) | ||
3. [Navigation](Navigation) | ||
4. [Authorization](Authorization) | ||
5. [Views & Layout](ViewLayout) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
sidebar_label: From v1 to v2 | ||
--- | ||
# Upgrading from v1 to v2 | ||
|
||
LmcAdmin v2 is a major version upgrade with many breaking changes that prevent | ||
straightforward upgrading. | ||
|
||
### Namespace change | ||
|
||
The namespace has been changed from LmcAdmin to Lmc\Admin. | ||
|
||
Please review your code to replace references to the `LmcAdmin` namespace | ||
by the `Lmc\Admin` namespace. | ||
|
||
### Default layout template name | ||
|
||
The default layout template has been changed from `layout/admin` to `layout/lmcadmin`. | ||
|
||
### Configuration key | ||
|
||
The configuration key for LmcAdmin was changed from `lmcadmin` to `lmc_admin`. |
Oops, something went wrong.