Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/09/2012, 16:02
Avatar de timoteo666
timoteo666
 
Fecha de Ingreso: agosto-2011
Ubicación: /home/Gdl
Mensajes: 242
Antigüedad: 12 años, 8 meses
Puntos: 11
Respuesta: zf2 + modulo por default

Gracias GatorV, haber si entendi , quedaria algo asi??


Código PHP:
return array(
    
'router' => array(
        
'routes' => array(
            
'home' => array(
                
'type' => 'Zend\Mvc\Router\Http\Literal',
                
'options' => array(
                    
'route'    => '/',
                    
'defaults' => array(
                        
'controller' => 'Application\Controller\Index',
                        
'action'     => 'index',
                    ),
                ),
            ),
            
'home' => array(
                
'type' => 'Zend\Mvc\Router\Http\Literal',
                
'options' => array(
                    
'route'    => '/',
                    
'defaults' => array(
                        
'controller' => 'Album\Controller\Index',
                        
'action'     => 'index',
                    ),
                ),
            ), 

Cita:
Iniciado por GatorV Ver Mensaje
No eso no es lo correcto, si te fijas en TuApp\Module\Application\config\module.config.php, tienes esto:
Código PHP:
Ver original
  1. return array(
  2.     'router' => array(
  3.         'routes' => array(
  4.             'home' => array(
  5.                 'type' => 'Zend\Mvc\Router\Http\Literal',
  6.                 'options' => array(
  7.                     'route'    => '/',
  8.                     'defaults' => array(
  9.                         'controller' => 'Application\Controller\Index',
  10.                         'action'     => 'index',
  11.                     ),
  12.                 ),
  13.             ),

Basta con que pongas en tu application.config.php, una ruta home a tu otro controller.

Saludos.
__________________
( + ) lineas de código ( - ) televisión