Improved exception handling and other minor fixes
This commit is contained in:
5
application/views/errors/403.php
Normal file
5
application/views/errors/403.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>Oops!</h1>
|
||||
<h2>403 Not Found or Not Authorised?</h2>
|
||||
<div class="error-details">
|
||||
Sorry, either the item doesnt exist, or you are not authorised to see it.
|
||||
</div>
|
@@ -1,27 +1,5 @@
|
||||
<?php
|
||||
Style::factory()
|
||||
->type('file')
|
||||
->data('media/css/pages/error.css');
|
||||
|
||||
echo View::factory('theme/focusbusiness/page')
|
||||
->set('meta',new Meta)
|
||||
->set('navbar','')
|
||||
->set('content','
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<div class="error-container">
|
||||
<h1>Oops!</h1>
|
||||
<h2>404 Not Found?</h2>
|
||||
<div class="error-details">
|
||||
Sorry, an error has occured, requested page not found?
|
||||
</div>
|
||||
<div class="error-actions">
|
||||
'.HTML::anchor('/','<i class="icon-chevron-left"></i> Back to Home',array('class'=>'btn btn-large btn-primary')).'
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h1>Oops!</h1>
|
||||
<h2>404 Not Found?</h2>
|
||||
<div class="error-details">
|
||||
Sorry, an error has occured, requested page not found?
|
||||
</div>
|
||||
');
|
||||
?>
|
||||
|
@@ -1,4 +1,6 @@
|
||||
Bother, something went wrong - 501.
|
||||
<h1>Oops!</h1>
|
||||
<h2>501 Bother, something went wrong.</h2>
|
||||
<?php echo $message; ?>
|
||||
<hr/>
|
||||
<?php echo Debug::vars(array('cookie'=>$_COOKIE,'request'=>$_REQUEST,'session'=>$_SESSION,'server'=>$_SERVER)); ?>
|
||||
<div class="error-details">
|
||||
If this keeps happening, please let us know.
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user