https://github.com/matoilic/namespaces
Global Namespaces in TYPO3 fluid
https://github.com/matoilic/namespaces
Last synced: 9 months ago
JSON representation
Global Namespaces in TYPO3 fluid
- Host: GitHub
- URL: https://github.com/matoilic/namespaces
- Owner: matoilic
- Created: 2014-04-15T19:33:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-23T12:42:22.000Z (over 9 years ago)
- Last Synced: 2025-04-22T19:13:08.861Z (9 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
This extension allows you to register a global namespace in fluid so that you don't have to put the declaration in every file, as this can become quite cumbersome.
In your ext_localconf.php add the following line to register a global namespace
```
\MatoIlic\Namespaces\Core\TemplateParser::registerNamespace($_EXTKEY, 'YourNamespace', 'Path\\To\\Namespace');
```
This will save you from putting
```
{namespace YourNamespace=Path\To\Namespace}
```
in every file.
If you have any questions or need support feel free to contact me through the form on my homepage http://matoilic.ch.