This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\JobQueueTest; | |
/* * | |
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". * | |
* * | |
* */ | |
use TYPO3\Flow\Annotations as Flow; | |
use TYPO3\Flow\Utility\Files; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Smichaelsen\Gist\Mail; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext; | |
/** | |
* This class represents an email which can be rendered with fluid. | |
* You can use all the possibilities of TYPO3's MailMessage but instead of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My\Package\Service; | |
use TYPO3\Flow\Annotations as Flow; | |
/** | |
* @Flow\Scope("singleton") | |
*/ | |
class EmailService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\JobQueueTest; | |
/* * | |
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". * | |
* * | |
* */ | |
use TYPO3\Flow\Annotations as Flow; | |
use TYPO3\Flow\Utility\Files; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Fallback route | |
- | |
name: 'fallback' | |
uriPattern: '' | |
defaults: | |
'@package': 'TYPO3.Flow' | |
'@subpackage': 'Mvc' | |
'@controller': 'Standard' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -d "Web" -o ! -d "Packages" -o ! -d "Configuration" ]; then | |
echo Make sure you run this from the TYPO3 Flow root directory! | |
echo | |
exit 1 | |
fi | |
BASE_DIR=$(pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//TEMPLATE | |
{{#linkTo account account}}View{{/linkTo}} | |
//ROUTER | |
App.Router.map(function() { | |
this.resource('accounts', function() { | |
//this.route('account', { path: ':accountguid' }); | |
}); | |
this.resource('account', { path: '/accounts/:accountguid' }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(doc) { emit( | |
[ | |
doc.city, | |
'indicator_beroepsbevolking', | |
parseInt(doc.date.substr(0, 4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Person = DS.Model.extend({ | |
firstName: DS.attr('string'), | |
lastName: DS.attr('string'), | |
fullName: function() { | |
return this.get('firstName') + ' ' + this.get('lastName'); | |
}.property('firstName', 'lastName'), | |
didLoad: function() { | |
console.log(this.get('fullName') +" finished loading."); |