Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

wwwxxx0cm,, Event 9 IIS log failed to write entry, wwwxxx jeffs, Catastrophic failure Unexpected method call sequence. 0x8000ffff (-2147418113)., ksh lock a file, [unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed, sed: -e expression #1, char 1: unterminated address regex, procmail + change subject, w2ksp4.exe download



#1: Is it possible to create a global namespace alias?

Posted on 2010-10-04 16:24:08 by Matt Palermo

Content-Type: text/plain;
Content-Transfer-Encoding: quoted-printable

ï»=BFIs it possible to create a global namespace alias in PHP or =
does the alias have to be defined in EVERY file that I use? Here is an =

file: main.php
use \this\is\my\custom\namespace\Item as nsItem;

file: index.php
require_once â€=9Cmain.phpâ€=9D;

// Attempt to use namespace alias defined in main.php file

The above code doesnâ€=99t work for me. The namespace alias defined =
in the main.php file isnâ€=99t accessible in the index.php file. Is =
there a way to make the â€=9CnsItemâ€=9D alias a =
â€=9Cglobalâ€=9D one, so that I donâ€=99t have to define it =
in EVERY file that I want to use?


Report this message