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
HipHop Fatal error: Argument 2 passed to ArrayObject::__construct() must be an instance of int, nulll given in /root/kohana/system/classes/Kohana/HTTP/Header.php on line 299 |
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_Page extends Controller { | |
public function action_page() | |
{ | |
$page = $this->request->param('page'); | |
if (Kohana::find_file('views', $page) === FALSE) | |
{ | |
throw new HTTP_Exception_404('The requested page :page could not be found', array( | |
':page' => $page, |
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.'); | |
/** | |
* Extend this class if you want your model cached. Example usage: | |
* | |
* 1. Model | |
* class Model_User extends ORM_Cached {} | |
* | |
* 2. Usage | |
* |