Print the Error * Log => Write the Error in a Log-File * Mail => Send the Errormessage with a mail * * all => includes all ways */ $Exceptionsconfig = array( array ('type' => 'default', 'action' => 'echo'), array ('type' => 'default', 'action' => 'log'), array ('type' => "Error_Exceptions_DbException", 'action' => 'all'), array ('type' => "Error_Exceptions_FrontException", 'action' => 'all'), array ('type' => "Error_Exceptions_XmlException", 'action' => 'all') ); $config = array ( 'logfile' => 'framework/log.log', 'adress' => 'gabriel-bretschner@gmx.net' ); $handler = new Error_ExceptionsHandler($config); $handler->setExceptionsConfig($Exceptionsconfig); /* * Set an extern Errortemplate wich will use if anything in the application throws an exception! */ $handler->setErrorTemplate('Scripts/error.html'); set_exception_handler(array($handler, 'handleException' )); /* * Application Start */ $front = Controller_Front::getInstance(); $front->setBaseUrl(''); $front->run('Controller', true); /* * Database */ $db = Data_Db::getInstance(); $config = array ( 'host' => 'localhost', 'user' => 'root', 'pw' => 'norwegen', 'db' => 'framework' ); $db->factory($config); $select = new Data_Db_Select(); $select->from('test'); $select->order('id', 'DESC'); $select->where('id > 0'); $insert = new Data_Db_Insert(); $insert->into('test', array ('test')); $insert->values(array('hi')); $db->query($select); $answer = $db->fetchAll(); /*for ($i=0; $i \n"; } */ $db->factory($config); ?>