Loading...
Loading...

Administration Panel

generate admin panel to control your users

admin-generator

Generate your Laminas MVC Administration Panel to provide different acess rights to admins, users and guests with Acess Control Layer permissions.

Required Laminas Components

  1. https://github.com/LM-Commons/LmcRbacMvc

Required Laminas Starter Kit Components

  1. login-registration-generator

On-line Generator

Setup Instructions

  1. Ensure you have module called: %module% in your application.
  2. Copy new Admin Module folder into [root]/module/.
  3. Create a PHP config file called lmc_rbac.global.php in: [root]/config/ and paste the contents from above.
  4. EDIT a PHP config file called modules.config.php in: [root]/config/ and add the contents from above (make sure you also include Admin line above the %module% one.
  5. Update composer.json file with new module for autoloading.
  6. Create a PHP config file called global.php in: [root]/config/autoload/ and paste the contents from above.
  7. Update a Rowset Model file called User.php in: [root]/module/%module%/src/Model/Rowset/ and paste the contents from above.

Throubleshooting

Make sure your application contains all the required plugins from "Required Laminas Components" and "Required Laminas Kit Components".
You can learn how to add missing dependencies in this video:

Parameters

Param name Type Default value Description
module text NULL Sets a module name

CLI Usage

"vendor/bin/laminas.bat" mvc:admin --module=<moduleName>

Example Usage

"vendor/bin/laminas.bat" mvc:admin --module=Application

Learn more with Laminas Book:

Laminas MVC: the most innovative framework in PHP - get a book on Amazon

Need help? Checkout our setup page, video tutorials or ask questions on our forum!

Help Tutorials Forum
TOP