cakephp tcpdf image error [Image]无法获取图像 [英] cakephp tcpdf image error [Image] Unable to get image
本文介绍了cakephp tcpdf image error [Image]无法获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图找出这个奇怪的问题使用TCPDF和CakePHP。
i am trying to figure out this weird issue using TCPDF and CakePHP.
事实是,我能够输出一个静态 p>
the fact is that i am able to output a "static" image like this
$this->Image(WWW_ROOT.'/img/logo-infiniti.png', 15, 15);
但是当我使用cakephp指令的图像不再工作
but when i use cakephp instruction for images it doesn't work anymore
echo $this->Image->resize($line['Line']['UploadImage'][0]['name'], 100, 100);
我收到此错误
TCPDF ERROR: [Image] Unable to get image: /Applications/MAMP/htdocs/configurator/files/cache/a/a/79x100_1316533443.jpg
任何帮助将非常感谢...感谢!
any help will be very appreciated...thanks!
推荐答案
使用chmode()函数授予应用程序/ MAMP / htdocs / configurator / files / cache到777
use chmode() function to give permission Applications/MAMP/htdocs/configurator/files/cache to 777
这篇关于cakephp tcpdf image error [Image]无法获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文