Skip to content

Instantly share code, notes, and snippets.

View enov's full-sized avatar

Samuel Demirdjian enov

View GitHub Profile
@enov
enov / fatal_error.txt
Last active January 2, 2016 11:29
Kohana tests run in HHVM
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
@enov
enov / Page.php
Last active December 30, 2015 00:09
How I use WinterSilence / kohana-meta-tags
<?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,
@enov
enov / Cached.php
Created October 3, 2013 17:35 — forked from kemo/Cached.php
<?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
*