excepciones no funcionan bien

21 views
Skip to first unread message

Sergio Ambel Santoyo

unread,
Sep 9, 2013, 1:46:33 PM9/9/13
to sifophp
Hola,


al parecer las excepciones como esta:

throw new Exception_302( $this->getUrl( 'base' ) );

han dejado de funcionar. Alguien sabe algo?


gracias!



Sergio

Albert Garcia

unread,
Sep 10, 2013, 2:59:31 AM9/10/13
to sif...@googlegroups.com
En qué revisión / rama?

--
Albert García Gibert
email. albert...@gibert.es
blog. http://obokaman.com
twitter. @obokaman


2013/9/9 Sergio Ambel Santoyo <sergi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "SIFO, PHP framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sifophp+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Albert Lombarte

unread,
Sep 10, 2013, 3:04:22 AM9/10/13
to sif...@googlegroups.com
Puede ser que lo estés ejecutando en un punto donde todavía no se ha llamado nunca al constructor de la clase URL. Es el __construct de URL el que hace el set:
self::$base_url = self::$scheme . '://' . $filter_server->getString( 'HTTP_HOST' );


2013/9/10 Albert Garcia <albert...@gibert.es>

Sergio Ambel Santoyo

unread,
Sep 10, 2013, 7:59:09 AM9/10/13
to sifophp
Devuelve un 500 y es la última versión de la rama master:

  • code_msgInternal Server Error
  • msgThe variable 'Exception_302' was not found in the classes file.


2013/9/10 Albert Lombarte <alom...@gmail.com>

Sergio Ambel Santoyo

unread,
Sep 10, 2013, 8:34:42 AM9/10/13
to sifophp
Fixed,

Era error mío. En la clase hija no se hereda el "use" de la madre cono lo que había que definir el namespace.

También se arregla definiendo el namespace al principio del fichero:

use Sifo\Exception_302;




Reply all
Reply to author
Forward
0 new messages