There is such a syntax in doctrine configuration. Does php have such a syntax and it will not make errors. & Amp; lt ;? Phprequire & #039; DoctrineORMToolsSetup. php & #039; $ lib & amp; quot; pathtodoctrine2-ormlib & amp; quot; DoctrineORMToolsSetup: registerAutolo... there is such a syntax in doctrine configuration. Does php have such a syntax and it will not make errors.
Require 'Doctrine/ORM/Tools/Setup. php ';
$ Lib = "/path/to/doctrine2-orm/lib ";
Doctrine \ ORM \ Tools \ Setup: registerAutoloadDirectory ($ lib );
?>
Namespace Sandbox;
UseDoctrine \ Common \ ClassLoader,
Doctrine \ ORM \ Configuration,
Doctrine \ ORM \ EntityManager,
Doctrine \ Common \ Cache \ ApcCache,
Entities \ User, Entities \ Address;
Reply content:
There is such a syntax in doctrine configuration. Does php have such a syntax and it will not make errors.
Require 'Doctrine/ORM/Tools/Setup. php ';
$ Lib = "/path/to/doctrine2-orm/lib ";
Doctrine \ ORM \ Tools \ Setup: registerAutoloadDirectory ($ lib );
?>
Namespace Sandbox;
UseDoctrine \ Common \ ClassLoader,
Doctrine \ ORM \ Configuration,
Doctrine \ ORM \ EntityManager,
Doctrine \ Common \ Cache \ ApcCache,
Entities \ User, Entities \ Address;
Yes. This is from php.namespace
The backslash marks the namespace level, but this can only be used in php 5.3.