note 107672 added to language.namespaces.importing
| From: | shep at norfleet dot org | Date: | Sat, 25 Feb 2012 04:49:02 +0000 |
| Subject: | note 107672 added to language.namespaces.importing | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186349@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 173.66.170.15
----
Manual Page -- http://www.php.net/manual/en/language.namespaces.importing.php
Edit -- https://master.php.net/note/edit/107672
Del: integrated -- https://master.php.net/note/delete/107672/integrated
Del: useless -- https://master.php.net/note/delete/107672/useless
Del: bad code -- https://master.php.net/note/delete/107672/bad+code
Del: spam -- https://master.php.net/note/delete/107672/spam
Del: non-english -- https://master.php.net/note/delete/107672/non-english
Del: in docs -- https://master.php.net/note/delete/107672/in+docs
Del: other reasons-- https://master.php.net/note/delete/107672
Reject -- https://master.php.net/note/reject/107672
Search -- https://master.php.net/manage/user-notes.php