0
當我執行:如何配置doctrine 2以便它可以找到setup.php文件?
doctrine orm:schema-tool:create
我得到:
'"@[email protected]"' is not recognized as an internal or external command, operable program or batch file.
我改變斌\ doctrine.php是這個固定的:
php "C:\Program Files\DoctrineORM-2.2.2\bin\doctrine.php" %*
現在,我得到更遠。
輸出的doctrine orm:schema-tool:create
部分如下::在執行命令行以下
Fatal error: require_once(): Failed opening required 'Doctrine/ORM/Tools/Setup.php' (include_path='.;C:\xampp\php\PEAR') in C:\Users\bam1216\Documents\Development\DoctrineTutorial\project\bootstrap_doctrine.php on line 7
失敗的文件是bootstrap_doctrine.php,它是放在require_once線以下的第7行:
use Doctrine\ORM\Tools\Setup; require_once "Doctrine/ORM/Tools/Setup.php";
的Setup.php,它是指在C到位於我的機器上:\ Program Files文件\ DoctrineORM-2.2.2 \原則\ ORM \工具\ Setup.php。我如何配置它來查找該設置文件?