Skip to content

Instantly share code, notes, and snippets.

Simon Males sime

Block or report user

Report or block sime

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sime
sime / schema.php
Created Feb 26, 2012
Possible example of using the CakePHP Schema callback `after` to insert content in the database
View schema.php
<?php
// Possible example of using the CakePHP Schema callback `after`
// to insert content in the database.
// Inspiration: https://github.com/majna/schema
// Copy schema.php to app/Config/Schema
// Run: ./Console/cake schema create
App::uses('ClassRegistry', 'Utility');
class AppSchema extends CakeSchema {
@sime
sime / delete_cookie.js
Created Jul 15, 2011
Delete a cookie with JS
View delete_cookie.js
You can’t perform that action at this time.