Skip to content

Instantly share code, notes, and snippets.

@rjd22
rjd22 / Kohana_3_4.md
Last active March 5, 2018 11:16
Plans for Kohana 3.4 and 4.x

Kohana 3.4

Features

  • Kohana core - isolated autoloader/module loader/filesystem and cache (@zombor already started this iirc)

Fixes

  • Move Request::factory() into Request_Factory

Improvements

  • Database should support Mysqli
  • Namespaces
@rjd22
rjd22 / coroutine.php
Created September 23, 2013 10:12 — forked from nikic/coroutine.php
<?php
error_reporting(E_ALL);
/* Data can be send to coroutines using `$coroutine->send($data)`. The sent data will then
* be the result of the `yield` expression. Thus it can be received using a code like
* `$data = yield;`.
*/
/* What we're building in this script is a coroutine-based streaming XML parser. The PHP
@rjd22
rjd22 / Template.php
Created September 17, 2013 10:05
Ugly example of a wrapped kohana validation class
<?php
class Validate_Template
{
/**
* @var Validation
*/
private $_validation;
public function load(array $data, $validation = FALSE)
{
Total
Totaal
Active
Actief
Suspended
Geschorst
Pending
// Controller
<?php defined('SYSPATH') or die('No direct script access.');
class Contact_Controller extends Website_Controller
{
public function index()
{
url::redirect();
}