Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/01/2012, 02:55
miktrv
 
Fecha de Ingreso: julio-2008
Ubicación: Barcelona
Mensajes: 2.100
Antigüedad: 15 años, 9 meses
Puntos: 165
Zend - Hola mundo error



Hola buenas, he decidido probar Zend Framework, y no entiendo porque no funciona, es mi primer contacto con este Framework y no se muy bien que hacer.


He seguido el siguiente tutorial, http://rhythmiclife.com/tutorials/in...rk-hello-world

Yo he añadido al front controller (index.php) el siguiente código para capturar la exception:

Código PHP:
// Dispatch the request using the front controller. 
try {
    
$frontController->dispatch();
} catch (
Zend_Exception $e) {
    echo 
"<h1>Caught exception:</h1> " get_class($e) . "<br><br>\n\r";
    echo 
"<strong>Message:</strong> " $e->getMessage() . "\n";
// Other code to recover from the error

Que me devuelve:

Caught exception:

Zend_Controller_Dispatcher_Exception

Message: Invalid controller specified (index)

Un saludo!
__________________
Gracias por el Karma :D

empleo ofertas de trabajo