How can i run the admin module in zend 2.3?

284 Views Asked by At

I have tried so much through Googling but I have not found the right solution for that. Can anyone help me out? Even I tried to change the module.config file code through routing as well as I have tried application.config file to add module name in file but it is not working.

Fatal error: Uncaught exception 'Zend\Mvc\Router\Exception\InvalidArgumentException' with message 'Missing "type" option' in D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack.php:269 Stack trace: #0 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Http\TreeRouteStack.php(163): Zend\Mvc\Router\SimpleRouteStack->routeFromArray(Array) #1 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Http\TreeRouteStack.php(113): Zend\Mvc\Router\Http\TreeRouteStack->routeFromArray(Array) #2 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack.php(140): Zend\Mvc\Router\Http\TreeRouteStack->addRoute('controllers', Array) #3 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\SimpleRouteStack.php(84): Zend\Mvc\Router\SimpleRouteStack->addRoutes(Array) #4 D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\Mvc\Router\Ht in D:\xampp\htdocs\myproject\vendor\zendframework\zendframework\library\Zend\ServiceManager\ServiceManager.php on line 909

2

There are 2 best solutions below

9
mark winkle On

First you need to install the zf-commons and configure in module.config.php.

public
vendor
 zf-commons
  zfc-admin
  zfc-user

Please take a look at this.

https://github.com/ZF-Commons/ZfcAdmin

0
Sandeep Tiwari On

I have created separate file for my module like module.config.php as well as module.php adding the namespace of my module name it works for me. and just add my module name in application.config.php .