0
我在zendframework 2个工作在同一起选择学说2zendframework 2 doctrine2模式不会打开
我试图使用ORM:证实模式来验证和生成在我的数据库表;即将实体类User与新表匹配。
我随后马可pivetta教程
http://marco-pivetta.com/doctrine-orm-zf2-tutorial/#/24
然而,当我试图在我的git中打开该架构即
[email protected] /cygdrive/c/users/andreea/zend/testingZend
./vendor/bin/doctrine-module orm:validate-schema
我得到以下信息:
无法打开输入文件: /cygdrive/c/users/endy/zend/testing Zend公司/供应商/学说/教义模块/斌/学说模块
没有任何人有一个想法,为什么我无法打开页面
亲切问候
安德列亚
喜再次 followng foozi的意见,我尝试了folllowing:
php public/index.php orm:validate-schema
howeve R,我收到以下错误消息:
Undefined index: APPLICATION_ENV in C:\Users\andreea\zend\testingZend\public\index.php on line 19
Call Stack:
0.0002 235176 1. {main}() C:\Users\andreea\zend\testingZend\public\index.php:0
Zend Framework 2.2.5 application
Usage:
Reason for failure: Invalid arguments or no arguments provided
PHP Notice: Undefined index: APPLICATION_ENV in C:\Users\andreea\zend\testingZend\public\index.php on line 19
PHP Stack trace:
PHP 1. {main}() C:\Users\andreea\zend\testingZend\public\index.php:0
我认为该消息是指followng:
/**
* Display all errors when APPLICATION_ENV is development.
*/
if ('development' === $_SERVER['APPLICATION_ENV']) {
error_reporting(E_ALL);
ini_set("display_errors", 1);
}
将gratful一些建议
嗨foozy,我试过你的解决方案,但得到了一个新的错误信息。我已将错误消息放入我的主要查询中。感谢您的继续帮助 – andreea115
您应该在〜/ .bashrc(linux)〜/ .bashrc_profile(mac os x)中定义APPLICATION_ENV变量以便在CLI上使用环境变量。这是我写的关于这个问题的另一个答案:http://stackoverflow.com/questions/20922814/runnig-zend-framework-2-action-from-console-not-working/20923299#20923299 – edigu
哦..在Mac上os x,它应该是'〜/ .bash_profile'而不是'〜/ .bashrc_profile'抱歉。 – edigu