Skip to content

Instantly share code, notes, and snippets.

@ryross
Created August 5, 2010 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryross/509271 to your computer and use it in GitHub Desktop.
Save ryross/509271 to your computer and use it in GitHub Desktop.
classes/controller/errors.php
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Errors extends Controller_Base
{
public function action_404()
{
$this->template->title = "File Not Found - 404";
$this->template->content = View::factory('errors/404');
}
public function action_500()
{
$this->template->title = "Application Error - 500";
$this->template->content = View::factory('errors/500');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment