Skip to content

Instantly share code, notes, and snippets.

View BugBuster1701's full-sized avatar
🏠
Working from home

Glen Langer BugBuster1701

🏠
Working from home
  • T-Systems
  • Berlin, Germany
View GitHub Profile
@BugBuster1701
BugBuster1701 / gist:4b7a1fafe59fd65fd656
Created May 13, 2014 09:59
Contao und dynamischer Pfad für die Initialisierung
<?php
/*
* Damit ist es egal ob das Modul von composer normal als ZIP geladen und entpackt wird
* oder per git clone und dynamischen links, wodurch die Verzeichnisebene eine andere wird
*/
/**
* Initialize the system
*/
$dir = __DIR__;
https://github.com/blog/1841-nested-task-lists
@BugBuster1701
BugBuster1701 / mootools-accordeon-mit-positions-korrektur
Created May 28, 2014 09:19
mootools-accordeon-mit-positions-korrektur
http://www.sr-tag.de/blog-details/mootools-accordeon-mit-positions-korrektur.html
<?php
$path = 'tl_files/shoot/me.jpg';
$file = \FilesModel::findOneByPath($path);
echo $file->uuid; // binär
echo \String::binToUuid($file->uuid); // menschenlesbar
@BugBuster1701
BugBuster1701 / gist:aaa6ae1b34567526e47b
Created June 24, 2014 12:34
dca, wizard, anonyme Funktion
'color' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_fp_gallery']['color'],
'exclude' => true,
'inputType' => 'select',
'options_callback' => array('Class', 'getColors'),
'eval' => array('tl_class'=>'w50 wizard'),
'wizard' => array
(
function($dc) {
http://www.phprpc.org/en/docs/#[[PHPRPC%20for%20PHP]]
oder als composer github Variante:
https://github.com/codegun/php-phprpc
@BugBuster1701
BugBuster1701 / gist:a6a4a431cb268c29dddc
Created October 2, 2014 12:58
different pull requests with separate branches
To make different pull requests, you create separate branches in your repository.
It is pretty common to name them after the issue they address.
It depends on the GIT interface you use but in plain command line the usual workflow goes like this:
# clone your own fork
git clone [email protected]:rolandschuetz/core.git
# add the upstream repository to the fork.
git add remote upstream [email protected]:contao/core.git
# checkout the correct maintenance branch you want to base upon
@BugBuster1701
BugBuster1701 / gist:339bd09cd03972647f55
Created October 25, 2014 00:28
Contao - Rebuild internal cache
// Rebuild internal cache
if (!$GLOBALS['TL_CONFIG']['bypassCache'])
{
$this->import('Automator');
$this->Automator->generateConfigCache();
$this->Automator->generateDcaCache();
$this->Automator->generateDcaExtracts();
}
@BugBuster1701
BugBuster1701 / gist:16e3c9fb2f56dc877942
Created December 3, 2014 14:29
Travis Einführung, Beispiele, phpunit
http://www.thewebhatesme.com/entwicklung/travis-ci/
http://www.thewebhatesme.com/entwicklung/travis-ci-fuer-fortgschrittene/
http://blog.sebastianbrosch.de/entwicklung/github-travis-ci-coveralls-code-climate-95/
http://www.espend.de/artikel/testing-mit-composer-travis-ci-phpunit-und-github.html
https://github.com/codefog/contao-haste/blob/master/.travis.yml
http://www.sitepoint.com/getting-started-with-phpunit/
@BugBuster1701
BugBuster1701 / gist:4319fb99bf6a137b24db
Last active January 28, 2017 19:30
Contao Checkbox, Höhe automatisch vergößern
in Backend css Datei
.w50h .tl_tip
{
height: auto;
}
in DCA bei eval: statt
array('tl_class'=>'w50' ...)
nun
array('tl_class'=>'w50 w50h' ...)