views:

26

answers:

1

I have these namespaces defined in my bootstrap file:

use Doctrine\Common\ClassLoader,
    Doctrine\Common\Annotations\AnnotationReader,
    Doctrine\ODM\MongoDB\DocumentManager,
    Doctrine\ODM\MongoDB\Mongo,
    Doctrine\ODM\MongoDB\Configuration,
    Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;

But there is an error on the first line above:

syntax error, unexpected 'Doctrine', expecting '('

7.X is supposed to have namespace support, but it's showing errors ALL throughout my project. Any idea why?

+1  A: 

Just a thought, but do you definitely have your project configured for PHP 5.3 support? Our installation here defaults to PHP 5.2 for new projects.

Stephen Orr
Ahhh. It is set to "use default". Which may not be 5.3. That's probably it. Duh!
Hallik