Example #1
0
 public static function deliver()
 {
     $email = db()->table('email')->get('delivered', null, 'IS')->fetch();
     $transport = Environment::get('email.transport');
     if (!$transport || !$transport instanceof TransportInterface) {
         throw new PrivateException('No valid transport method found');
     }
     if (!$email) {
         return;
         #Everything delivered nicely
     }
     $transport->deliver($email);
     $email->delivered = time();
     $email->store();
 }
Example #2
0
	<body>
		<div class="wrapper">
			<h1 class="sfheader">Spitfire <small>//Error page</small></h1>
		</div>
		<div class="errormsg">
			<div class="wrapper">
				<h1>500: Server error</h1>
			<p><?php 
echo $message;
?>
</p>
			</div>
		</div>

		<?php 
if (\spitfire\core\Environment::get('debugging_mode')) {
    ?>
		<div class="errordescription wrapper">
			<h2>Further error information <small>To hide this set debug_mode to false.</small></h2>
			<p>The stacktrace displays the function calls made that led to the error. They are displayed in an inverted order to how they were called.</p>
			<pre><?php 
    echo $moreInfo;
    ?>
</pre>
			
			<?php 
    $messages = spitfire()->getMessages();
    if ($messages) {
        echo '<h2>Debugging messages <small>To hide this set debug_mode to false.</small></h2>';
        echo '<p>List of messages the app generated during it\'s execution</p>';
        echo '<div class="debugmessages">';