Altre 2 domande:
(1)
La guida dice di editare C:\xampp\htdocs\ZF2\module\Users\config\module.con fig.php
in questo modo:
Codice PHP:
'users' => __DIR__ . '/../view',
la stringa sopra equivale a:
Codice PHP:
'users' => 'C:\xampp\htdocs\ZF2\module\Users\config' . '/../view',
ovvero a:
Codice PHP:
'users' => 'C:\xampp\htdocs\ZF2\module\Users\view',
?
(2)
Non riesco a capire questo discorso:
Routes – The last module configuration is to define a route for accessing
this module from the browser; in this case we are defining the route as
/users, which will point to the index action in the Index controller of
the Users module:
Codice PHP:
'router' => array(
'routes' => array(
'users' => array(
'type' => 'Literal',
'options' => array(
'route' => '/users',
'defaults' => array(
'__NAMESPACE__' =>
'Users\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
Dentro Controller, per esempio c'è IndexController.php, non index o Index.