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 echo View::factory('template/header'); ?> | |
<div class="content error"> | |
<h1>Application Error - 500</h1> | |
</div> | |
<?php echo View::factory('template/footer'); ?> |
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 echo View::factory('template/header'); ?> | |
<div class="content error"> | |
<h1>File Not Found - 404</h1> | |
</div> | |
<?php echo View::factory('template/footer'); ?> |
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 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.'); | |
//-- Environment setup -------------------------------------------------------- | |
/** | |
* Set the default time zone. | |
* | |
* @see http://kohanaframework.org/guide/using.configuration | |
* @see http://php.net/timezones | |
*/ |
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_Main extends Controller_Base | |
{ | |
public function action_index() | |
{ | |
$this->template->title = "Home"; | |
$this->template->content = View::factory('main/index'); | |
} |
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 echo View::factory('template/header'); ?> | |
<div class="content main"> | |
<h1>Main</h1> | |
</div> | |
<?php echo View::factory('template/footer'); ?> |
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 | |
/** | |
* The directory in which your application specific resources are located. | |
* The application directory must contain the bootstrap.php file. | |
* | |
* @see http://kohanaframework.org/guide/about.install#application | |
*/ | |
$application = '../application'; |
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
/* DISCLAIMER: This file was based off of YUI reset and font css files. */ | |
html{color:#000;background:#FFF;} | |
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td {margin:0;padding:0;color:#222;} | |
table { border-spacing: 0; border-collapse: collapse; } | |
th, td { border:1px solid #000; padding:.5em; } | |
th { font-weight:bold; text-align:center;} | |
fieldset,img {border:0;} | |
address,caption,cite,code,dfn,em,strong,var { font-style:normal; font-weight:normal; } |
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_Base extends Controller_Template | |
{ | |
public $auto_render = TRUE; | |
public $template = 'template/template'; | |
protected $session; | |
public function __construct(Request $request) | |
{ |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title><?php echo $title ?></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<?php foreach ($styles as $file) echo HTML::style($file), "\n" ?> | |
<?php foreach ($scripts as $file) echo HTML::script($file), "\n" ?> | |
</head> | |
<body> | |
<div id="page"> |