Skip to content

Instantly share code, notes, and snippets.

View speedygfw's full-sized avatar

Frank Wallenborn speedygfw

View GitHub Profile
@speedygfw
speedygfw / gist:3225082
Created August 1, 2012 08:41
Validate multiple Models in Yii (generic)
<?php
/**
* validateModels
* @param array $models
* @return boolean $valid
*/
function validateModels(array $models)
{
$valid = true;
@evo42
evo42 / aloha-config.js
Created December 8, 2011 19:52
Aloha Editor -- send content via ajax to a backend php script to save the data edited with Aloha Editor
( function ( window, undefined ) {
var Aloha = window.Aloha || ( window.Aloha = {} );
Aloha.settings = {
logLevels: { 'error': true, 'warn': true, 'info': true, 'debug': false, 'deprecated': true },
errorhandling: false,
ribbon: false,
locale: 'en',
floatingmenu: {
width: 630,