note 107672 rejected from language.namespaces.importing by tularis

From: Date: Sat, 25 Feb 2012 15:33:13 +0000
Subject: note 107672 rejected from language.namespaces.importing by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186360@lists.php.net to get a copy of this message
Note Submitter: shep at norfleet dot org ---- Use \namespace\subnamespace is failing. I think this is because PHP root for the namespace is not matching what I consider to be the root on the disk. My Structure: /var/site /var/site/Library <-- php objects /var/site/www /var/site/www/index.php <-- test page failing ----index.php--- <?php use Library\Type\Calendar; $calendar = new Calendar(); //ERROR on this line print $calendar; ?> How can I get PHP to use what I consider to be the namespace root? Thanks for any help you can spare

« previous php.notes (#186360) next »