php - Problems in specifying the correct path in zend 2 -


I am using zend 2 and I have AUTH in module.config.php The following is the module:

   Array ('invokables' => Array ('AUTH \ Controller') = & gt;'Aath 'Controller Index Controller', 'Oath Controller \ Registration' = & Gt; 'Ather' Controller \ SignController ',' Ather / Controller \ Themes' = & gt; Auth Controller \ Themes Controller, 'ATH' Controller Administrator '= & gt; AthController \ Administrator'), ), 'Router' = & gt; Array ('path' = & gt; array ('home' = & gt; array ('type' = & gt; 'literal', 'option' = & gt array ('path' => '/', 'Defaults' = & gt; Array ('Controller' = & gt;'Aath 'Controller Index', 'Action' =>, 'Index',)),), 'Auth' => '= & Gt; Segment', 'Option' => Array ('path' = & gt; '/ auth', 'defaults' = & gt; array ('__NAMESPACE__' = & gt; 'Ather Controller' , 'Controller' = & gt; 'index', 'verb' =>, 'index',),) 'may_terminate' = & gt; true, c hild_routes '=> array (' default '=' & Gt; array ('type' = & gt; 'segment', 'option' = & gt; array ('m '=': ['Controller' [/: Action [/: Id]]]], 'Barriers' => Array ('Controller' => [[AZA-Z]] A-zA-Z0-9 _-] * ',' verb '=> [[a-zA-Z],' defaults' => array (),)), [A-GAA-Z0 -9 _-] * ',' id '= & gt;' [a-zA-Z0-9 _-] * ',),),),),),' View_manager '= & gt; Array ('template_map' = & gt; array ('layout / athe' => gtk; __DIR__. '/../view/layout/Auth.phtml', 'application / layout / ajax-layout' => gt; __DIR__ / / ../view/layout/ajax-layout.phtml ',' App / layout / normal-layout '=> __DIR__. /../view/layout/normal-layout.phtml', 'auth / Index / login '= & gt; __DIR__.' /../view/Auth/index/login.phtml ',' auth / index / login-post '= & gt; __DIR__ ./../view/Auth/index / Login-post .phtml ',' auth / registration / registration-success' = & gt; __DIR__. '/../view/Auth/registration/registration-success.phtml', 'auth / registration / registration-failure' = & Gt; __DIR__ '/../view/Auth/registration/registration-failure.phtml', 'auth / themes / creation-fail' = & gt; __DIR__. '/../view/Auth/themes/creationFailure .phtml ',' auth / themes / Create '= & gt; __DIR__.' /../view/Auth/themes/createThemes.phtml ',),' template_path_stack '= & gt; array (' auth '= & gt; __DIR__.' /../view / '),' Display_exceptions' = & gt; true), 'service_manager' = & gt; Array ('aliases' => array ('Zend \ Authentication \ AuthenticationService' = & gt; 'my_auth_service',), 'invokables' => array ('my_auth_service' = & gt; 'Zend \ Authentication \ AuthenticationService' ',),)));   

When I name the head folder in Navigator: test / I get blank page, which does not contain these four words:

  Authorization Controller Index Action   

Instead of the actual page.

What is this? Who can help?

I resolved it in the following way:

  'router' = & Gt; Array ('path' => (arrays ('home' = & gt; array ('type' = & gt; '' Little '' 'option' = & gt; array ('path' => , 'Defaults' = & gt; array (' controller '= & gt;'that' controller 'index', 'verb' = & gt; 'login',)),),   

Its natural path: router -> root - - gt;

And the path just finds the way with a slash: / P>

'Route' = & gt; '/'

And its default:

  'defaults' => ; Array ('Controller' = & gt; Ath 'Controller Index,' Action '=>,' Login ',),    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -