问题
i am trying to figure out this weird issue using TCPDF and CakePHP.
the fact is that i am able to output a "static" image like this
$this->Image(WWW_ROOT.'/img/logo-infiniti.png', 15, 15);
but when i use cakephp instruction for images it doesn't work anymore
echo $this->Image->resize($line['Line']['UploadImage'][0]['name'], 100, 100);
and i get this error
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!
回答1:
use chmode() function to give permission Applications/MAMP/htdocs/configurator/files/cache to 777
来源:https://stackoverflow.com/questions/12371284/cakephp-tcpdf-image-error-image-unable-to-get-image