2012-10-12 50 views

Respuesta

3

Implementar missingAction método en su controlador,

Como se ha dicho @xdazz, comprueba si existe método y si no se llama método missingAction .

//This method is invoked when the controller cannot find the requested action. 

public function missingAction($actionID) 
{ 
    // Your code here 
} 
+0

¡Intenté esto y funciona bien !!!!!!!!!!! Gracias –

3

Esto depende del implemento del marco.

Por ejemplo, si el marco de la implementación del código como:

If (!method_exists($controller, $action)) { 
    throw new Exception("The system is unable to find the requested action $action"); 
} 
Cuestiones relacionadas