Skip to content

Instantly share code, notes, and snippets.

View revsbech's full-sized avatar

Jan-Erik Revsbech revsbech

View GitHub Profile
@revsbech
revsbech / PdfController.php
Created July 9, 2014 07:39
Example PDF Generation as plugin
<?php
namespace Aris\DailyReports\Controller;
/* *
* This script belongs to the TYPO3 Flow package "Aris.DailyReports". *
* *
* */
use Aris\DailyReports\Utility\WkHtmlToPdfUtility;
use TYPO3\Flow\Annotations as Flow;
@revsbech
revsbech / MyPluginController.php
Created June 30, 2014 08:01
Various Neos plugin snippets
/*
Accessing the current node or page (documentNde)
*/
/** @var \TYPO3\TYPO3CR\Domain\Model\Node $currentNode */
$currentNode = $request->getInternalArgument('__node');
/** @var \TYPO3\TYPO3CR\Domain\Model\Node $currentNode */
$currentPage = $request->getInternalArgument('__documentNode');
/*
@revsbech
revsbech / Gruntfile.js
Created May 27, 2014 07:13
Default Gruntfile
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
dist: {
src: [
'../../Resources/Public/JavaScript/Vendor/*.js',