Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Bastian Waidelich bwaidelich

🏠
Working from home
Block or report user

Report or block bwaidelich

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
@bwaidelich
bwaidelich / SentryExceptionHandler.php
Created Apr 30, 2014
Using Sentry for tracking errors in TYPO3 Flow
View SentryExceptionHandler.php
<?php
namespace Your\Package\Error;
/* *
* This script belongs to the TYPO3 Flow package "Your.Package". *
* *
* */
use TYPO3\Flow\Error\ProductionExceptionHandler;
@bwaidelich
bwaidelich / FluidFinisher.php
Last active Aug 29, 2015
Fluid finisher for the TYPO3.Form package
View FluidFinisher.php
<?php
namespace Your\Package\Form\Finishers;
use TYPO3\Flow\Utility\Arrays;
use TYPO3\Fluid\View\StandaloneView;
use TYPO3\Form\Core\Model\AbstractFinisher;
use TYPO3\Form\Core\Runtime\FormRuntime;
use TYPO3\Form\Exception\FinisherException;
/**
@bwaidelich
bwaidelich / Routes.yaml
Last active Aug 29, 2015
Example routing setup for the "Flickr" Plugin of the TYPO3.NeosDemoTypo3Org package
View Routes.yaml
-
name: 'Flickr: User stream'
uriPattern: '{node}/user/{--typo3_neosdemotypo3org-flickr.userId}.html'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@action': 'show'
'@format': 'html'
'--typo3_neosdemotypo3org-flickr':
'@package': 'TYPO3.NeosDemoTypo3Org'
@bwaidelich
bwaidelich / Root.ts2
Created Jan 11, 2015
Getting an exception "Exception while rendering rawContent [...] No content collection of type TYPO3.Neos:ContentCollection could be found in the current node" in TYPO3 Neos 1.2.1? This happens due to a regression in that very release (see https://jira.typo3.org/browse/NEOS-921). The bug is already fixed in git and will be in the next bugfix rel…
View Root.ts2
rawContent.body.allContentCollections.renderer = TYPO3.Neos:RawContent
View designer.html
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
View Player.php
<?php
namespace TomasNorre\GolfnetInvitational\Domain\Model;
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
/**
* @Flow\Entity
*/
class Player {
@bwaidelich
bwaidelich / Template.html
Created Aug 15, 2011
localized dates in Fluid
View Template.html
{f:format.date(date: '@{newsdate}', format: 'd.')} <f:translate key="monthNames.{f:format.date(date: '@{newsdate}', format: 'n')}" /> {f:format.date(date: '@{newsdate}', format: 'Y')}
@bwaidelich
bwaidelich / gist:1205824
Created Sep 9, 2011
Update electronic address
View gist:1205824
$electronicAddresses = $person->getElectronicAddresses();
$electronicAddressIndex = $electronicAddresses->indexOf($modifiedElectronicAddress);
$electronicAddresses->set($electronicAddressIndex, $modifiedElectronicAddress);
@bwaidelich
bwaidelich / AbstractBaseController.php
Created Oct 17, 2011
FLOW3: Redirect to action based on (sub)domain
View AbstractBaseController.php
<?php
abstract class AbstractBaseController extends ActionController {
/**
* Redirect to specific controller if current subdomain is not equal to the current controller name
* Note: initializeAction() is called before every action by default
*
* @return void
*/
protected function initializeAction() {
@bwaidelich
bwaidelich / Caches.yaml
Created Oct 20, 2011
Disable Compilation of Fluid templates
View Caches.yaml
Fluid_TemplateCache:
backend: TYPO3\FLOW3\Cache\Backend\NullBackend
You can’t perform that action at this time.