Skip to content

Instantly share code, notes, and snippets.

View mandrasch's full-sized avatar
🔍

Matthias Andrasch mandrasch

🔍
View GitHub Profile
return array(
/**
* global configuration
*/
// set it to false to prevent the static session from auto-initializing, know that it might make your session
// expire sooner because it's not updated when it's not used. note that auto-initializing always loads the default driver
'auto_initialize' => true,
// if no session type is requested, use the default
@mandrasch
mandrasch / edit.php
Created October 17, 2011 13:11
Loading WYSIWYG Editor in custom block (Concrete5)
<h2>Description 1</h2>
<?php
Loader::element('editor_init');
Loader::element('editor_config');
Loader::element('editor_controls');
?>
<div class="ccm-block-field-group" id="ccm-editor-pane">
<textarea id="description" class="ccm-advanced-editor advancedEditor" name="description" rows="5" style="width: 95%;"><?php echo $description; ?></textarea>
</div>
@mandrasch
mandrasch / controller.js
Created August 30, 2011 14:33
Widgets: scope problem
function OrganizationManagementCreateCtrl($route,$location)
{
var self = this;
this.$route = $route;
this.test123 = 'XXX';
this.formtemplate = 'partial_form.html';
@mandrasch
mandrasch / gist:1180532
Created August 30, 2011 09:25
Custom Resource.js
'use strict';
angular.service('$FUEL', function($resource,$xhr){
function Route(template, defaults) {
this.template = template = template + '#';
this.defaults = defaults || {};
var urlParams = this.urlParams = {};
forEach(template.split(/\W/), function(param){
if (param && template.match(new RegExp(":" + param + "\\W"))) {