[TYPO3-core] Use "namespace" directive for relative namespaces
Karsten Dambekalns
karsten at typo3.org
Mon Feb 25 16:44:40 CET 2013
Hi.
On 25.02.2013, at 13:28, Bernhard Kraft <kraft at web-consulting.at> wrote:
> For example in "sysext/cms/index_ts.php": Instead of prefixing EVERY call to \TYPO3\CMS\Core\... with this prefix we could declare a namespace for this file at the top:
>
> namespace \TYPO3\CMS\Core;
>
> And then simply use "Utility\MathUtility" or "Utility\GeneralUtility".
From your later reference to using multiple namespaces, it sounds as if you want to use imports here (keyword "use"). "namespace" declares the current namespace and is a very different thing.
Regards,
Karsten
--
Karsten Dambekalns
TYPO3 Core Developer, Neos / Flow Team
TYPO3 .... inspiring people to share!
Get involved: typo3.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2216 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20130225/752fb9f7/attachment.bin>
More information about the TYPO3-team-core
mailing list