[Flow] StandaloneView for emails and templatePathAndFileName

Bastian Waidelich bastian at typo3.org
Fri Aug 9 10:11:21 CEST 2013


Mark Kuiphuis wrote:

Hi Mark,

> is there a better approach where I don't have
> to hardcode the dir/to/file after the FLOW_PATH_ROOT constant?

As Steffen wrote, you can use the resource prefix.
If you want to use that as a "standalone service" that has no controller 
context, you can also just set the Package-Key manually:
https://gist.github.com/bwaidelich/5967024

With this (and with the manual initialization of the router) you can 
even use this from the CLI.

HTH

-- 
Bastian Waidelich
--
Core Developer Team

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the Flow mailing list