Trying to work with Image class.
I've my UI set in this mode:
$f3->set('UI','app/views/');
and images in /images/template/
So, I know that I need to force 3rd parameter.
By the way, I create this
1) In index.php
$f3->route('GET /admin/immagini.png','AdminController->immagini');
In AdminController
public function immagini()
{
$img = new \Image('logo_foot.png',FALSE,'/images/template/');
$img->resize(120,90);
//$img->render();
$img->dump();
}
But I've tried also:
- $img = new \Image('logo_foot.png',FALSE,'/var/www/vhosts/mydomina/httpdocs/images/template/');
- moving "logo_foot.png" inside app/views and doing $img = new \Image('logo_foot.png');
- change UI in $f3->set('UI','app/views/;images/template/');
- change $f3->route('GET /admin/immagini.png','AdminController->immagini'); in $f3->route('GET /admin/immagini','AdminController->immagini');
Why I cannot solve my issue? :( Unfortunately in Apache LOG every time I load "/admin/immagini.png" I have so many errors that it is impossible to understand something.
Thank you