[Solar-talk] Missing output from a thrown exception
Dmytro Konstantinov
umka.dk at gmail.com
Mon Apr 28 18:27:33 CDT 2008
Guys,
Can somebody give me a bit of hand with this problem I'm having.
Exceptions thrown in any of my page controllers do not output anything
to the browser. So, I've set up a really simple application to cut
away as much as possible of my code and see what could be causing
this. This is what I managed to work out so far....
My config.php sets all the usual parameters:
'error_reporting' => 'E_ALL | E_STRICT',
'report_memleaks' => true,
'ignore_repeated_errors' => false,
'ignore_repeated_source' => false,
'track_errors' => false,
... plus ...
'Solar_Controller_Front' => array(
'classes' => array('Hub_App'),
'disable' => array('Base'),
'default' => 'Site'),
My bootstrap index.php is as simple as it gets:
// Initialise Solar environment
require_once( 'Solar.php' );
Solar::start($project[ 'etc' ].DIRECTORY_SEPARATOR.'config.php');
// Instantiate and run the front controller.
$Front = Solar::factory( 'Solar_Controller_Front' );
$Front->display();
// Terminate solar environment
Solar::stop();
And then I have two page controllers
abstract class Hub_App_Base extends Solar_Controller_Page { }
... and ...
class Hub_App_Site extends Hub_App_Base
{
protected $_action_default = 'nonExistentIndex';
}
As you can see, I'm deliberately triggering off a _notFound event when
accessing the above index.php with no further parameters. I'm
expecting to see a message in my browser informing me of the thrown
exception. Instead I just get a blank page. I know that
Solar_Controller_Page::_notFound() is triggered because I can see the
output of "throw $this->_exception()" using var_dump() but where does
it go after that?? I'm guessing Solar_Exception->__toString() is
suppose to get triggered eventually ... but how?? Where??
Any help / advise / ideas would be very much appreciated, 'cos I'm at
my wits end!! :) Thanks guys!!
Dima
More information about the Solar-talk
mailing list