嗨,我正在尝试通过composer将doctrine2安装到zf2.我收到错误:
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (DoctrineModule) could not be initialized.'
我按照这个步骤https://github.com/doctrine/DoctrineORMModule
我的application.config看起来像这样:
return array(
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule',
'Album',
'User'
),
'module_listener_options' => array(
'config_glob_paths' => array(
'config/autoload/{,*.}{global,local}.php',
),
'module_paths' => array(
'./module',
'./vendor',
),
),
);
Run Code Online (Sandbox Code Playgroud)
我的composer.json:
"minimum-stability": "dev",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.*",
"doctrine/doctrine-orm-module": "dev-master",
"zendframework/zend-developer-tools": "*",
"bjyoungblood/bjy-profiler": "*"
},
Run Code Online (Sandbox Code Playgroud)
所有需要的学说库都在vendor/doctrine目录中.我想这与自动加载有关.
在作曲家更新后,我得到消息:
[ErrorException]
proc_open(): CreateProcess failed, error code - 267
我不能告诉它意味着什么,但也许这将是有帮助的.
第二件事是在https://github.com/doctrine/DoctrineORMModule上有section:
Installation steps (without composer)和point 3. …
我这样得到html:
using (var wb = new WebClient())
{
data = soeArray;
var response = wb.UploadValues(url, "POST", data);
string result = System.Text.Encoding.UTF8.GetString(response);
}
Run Code Online (Sandbox Code Playgroud)
但是有ś响应中的unicode代码.有没有什么方法可以用来将它改成相应的char?