Quantcast

Add new controllers for modules

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Add new controllers for modules

gildus
Hello comunity,

With the structure of @akrabat in the tutorial:

https://github.com/zendframework/zf2-tutorial

Its posible to add a new controller for example in the archive
module.config.php:

'controllers' => array(
        'invokables' => array(
                    'Blog\Controller\Blog' =>
'Blog\Controller\BlogController',
                    'AnotherController1\Controller\Blog' =>
'AnotherController1\Controller\AnotherControler1Controller',
                    'AnotherController2\Controller\Blog' =>
'AnotherController2\Controller\AnotherControler1Controller',
                   ....


        ),
    ),

Because just for the examples not all but the majority mentions just one
controller for one module. it's correct?. somebody know how add a new
controller ?.

Regards
Gildus


--
*El árbol que servirá para imprimir  este  papel, tardará 7 años en crecer.
Por favor no imprimas este mensaje si no es necesario.  Recuerda:  “Re-use,
Reduzca y Recicle”.*
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Add new controllers for modules

gildus
Hello friends, I was able to answer my questions, and may add more controllers within a module.

Sorry but I'm slowly getting to know the new structure.

Regards.
Loading...