[TYPO3-50-general] Will Typo3 5.0 use namespaces with PHP 5.3/PHP 6?

Christoph Blömer chbloemer at gmx.net
Sun Jan 13 17:39:02 CET 2008


will Typo3 5.0 use namespaces from PHP 5.3 and PHP 6 instead of the long 
class names with prefixes?

Instead of:

class T3_PhoneBookTutorial_View_PhoneBookEntries {

you could use:

namespace T3::PhoneBookTutorial::View;
class PhoneBookEntries {

If you want to use this class you can import it:

require 'T3/PhoneBookTutorial/View/PhoneBookEntries.php';
import T3::PhoneBookTutorial::View;
new PhoneBookEntries();


More information about the TYPO3-project-5_0-general mailing list