在我的 webapp/index.php 中,我定义了 include_path,如下所示:
<?php
set_include_path(implode(PATH_SEPARATOR, array(
'C:\Program Files\NetBeans 7.1.2\php\library',
get_include_path()
)));
require_once 'Zend\Form\Fieldset.php';
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
#do something with Fieldset class;
?>
</body>
</html>
但是当我运行文件时,我不断收到此错误消息:
Fatal error: Class 'Zend\Form\Element' not found in C:\Program Files\NetBeans 7.1.2\php\library\Zend\Form\Fieldset.php
谢谢你的帮助。