我无法在我的ubuntu 16.04上重新安装phantomjs 1.9.8到2.1.1版本请帮忙.1.9.8当我编写旋转函数时给我一个错误,在文档中看到这个问题我可以通过重新安装来解决.
请帮忙,我怎么能找到像PHP_EOL这样的常量用于制表我的代码写的文件有很多生成的制表和新行,新行正确地写了,但是我有很多“ \ t \ t”,请参见示例:
common.app \t/loader \t/growl \t\t/error \t/form
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Google+ API从Google+获取股数,并且仅捕获以下错误:
访问未配置。+1 API之前未在项目383866521277中使用,或者已被禁用。通过访问https://console.developers.google.com/apis/api/pos.googleapis.com/overview?project=383866521277启用它,然后重试。如果您最近启用了此API,请等待几分钟,以便该操作传播到我们的系统并重试。
之后,我访问推荐的链接,并找到pos.googleapis.com。如何启用此API?
我在 phalcon 中的模板有一些问题。它没有像它那样呈现。这是 do 操作方法的示例。名为 UploadSave 的操作。在此操作之后,我想呈现我的图像/上传模板。
try {
$hash = $this->request->getPost('hash');
$File = $this->_getUploadedFile();
$Validator = new ImageQualityValidator();
if($Validator->isValid($File)){
$Image = $this->_saveImage($File);
$EnvCfg = self::_getEnvCfgDir();
$cfg_data = $EnvCfg->getObject(self::MYPAINT);
$this->response->redirect($cfg_data->host.'image/crop?hash='.$hash);
}else {
$this->getViewData()->hash = $hash;
$this->getViewData()->validation_error = 'Image is invalid!!';
}
} catch (AMyPaintExceptions $Exc) {
$this->getViewData()->validation_error = $Exc->getMessage();
}
$this->view->setMainView('image/upload');
return $this->getViewData();
Run Code Online (Sandbox Code Playgroud)
但结果是白屏。image/upload.phtml 不为空:
{{
if( false == $this->is_already_image_uploaded) {
echo $Tag->form(
[
"image/uploadSave",
"method" => "post",
"enctype" => "multipart/form-data"
]
);
}}
<p> {{ echo $Tag->fileField('my_photo'); }}</p>
<p> …Run Code Online (Sandbox Code Playgroud)