我正在尝试找到一种方法来大规模应用这些命名空间,因为这样写出来会很不方便。我知道我可以简单地使用,jream\ as j
但我想看看是否可以避免使用反斜杠。
require '../jream/Autoload.php';
use jream\Autoload as Autoload,
jream\Database as Database,
jream\Exception as Exception,
jream\Form as Form,
jream\Hash as Hash,
jream\Output as Output,
jream\Registry as Registry,
jream\Session as Session;
new Autoload('../jream');
没有办法按照这些方式说些什么:jream\\* as *;
?
任何提示将不胜感激:)