0
return array('db' => array('driver'=> 'mysqli','dsn'=> 'mysql:dbname=zend;host=localhost',),'service_manager' => array('factories' => array('Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',),),
);

code of global.php

I just want to solve the error:

Fatal error: Uncaught exception 'Zend\ModuleManager\Listener\Exception\InvalidArgumentException' with message 'Config being merged must be an array, implement the Traversable interface, or be an instance of Zend\Config\Config. NULL given.

Can you please help me to solve this I want to create a page for the simple login page.also tell me the database connection way and configuration way. I'm new to zend.

Samurai
  • 3,724
  • 5
  • 27
  • 39
kinjal mehta
  • 53
  • 2
  • 9
  • Can you format the code you have shared, please? – Michal M. May 15 '15 at 13:11
  • This post may answer your question: http://stackoverflow.com/questions/16841797/zf-2-tutorial-application-config-being-merged-must-be-an-array – Richard Snazell May 18 '15 at 03:11
  • thanks for the replying this i have solve that error now it comes new error as bellow Zend\View\Renderer\PhpRenderer::render: Unable to render template "application/index/index"; resolver could not resolve to a file ? how to solve this ? – kinjal mehta May 19 '15 at 05:58

0 Answers0