Namespace declaration statement has to be the very first
Namespace declaration statement has to be the very first statement in the script
我新建了一个Homea模块,并把Homea\Controller\IndexController.class.php
的第一行改写成
namespace Homea\Controller;
就出现上面的错误了,请问我错在哪了,正确建立新模块应该怎么做
应该是该文件有BOM头问题,使用文本编辑器(比如UE),另存为UTF-8 时,选择无BOM头即可。