我是Zend Framework的新手,我想用ZF教程制作1个网站,但无法让它工作,我在/library/Zend/Mvc/Application.php on line 10中遇到了错误T_STRING。10中的代码如下:
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Zend\Mvc; <-- here is error.
use Zend\EventManager\EventManagerAwareInterface;
use Zend\EventManager\EventManagerInterface;
use Zend\ServiceManager\ServiceManager;
use Zend\Stdlib\ResponseInterface;我开始阅读如何声明namespace,但看起来一切都很好。会不会是因为主机提供商?
发布于 2013-05-22 16:05:48
要支持命名空间,您需要使用PHP >= 5.3。
https://stackoverflow.com/questions/16686523
复制相似问题