Created
August 5, 2010 05:12
-
-
Save ryross/509271 to your computer and use it in GitHub Desktop.
classes/controller/errors.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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