Skip to content

Instantly share code, notes, and snippets.

@wms
wms / gist:7749187
Last active December 30, 2015 00:19
public static function find($type, array $options = array())
{
// @todo: determine the Model to use instead of hard-coded 'User'
$options['conditions']['User.deleted'] = 0;
// @todo: add this condition for each 'With' relation instead of hard-coded 'Email'
$options['conditions']['Email.deleted'] = 0;
return parent::find($type, $options);
}
@wms
wms / Form.php
Created August 6, 2012 10:32 — forked from toomuchpete/Form.php
Lithium Form Helper for Twitter Bootstrap
<?php
namespace app\extensions\helper;
class Form extends \lithium\template\helper\Form {
/**
* String templates used by this helper.
*
* @var array