开发者

Kohana [ Fatal Error ]: Class 'Image' not found

ErrorException [ Fatal Error ]: Class 'Image' not found.

i have created an image object:

开发者_高级运维
$image = new Image($newFile);
$image = $image->resize(150, 150, Image::NONE);
$image->save($thumbsName); 

it is giving the above mentioned error. Please help.


Instances in Kohana are created like this example :

$image = Image::factory('path/to/file.ext');

Also, uncomment the bootstrap.php line about the image module :

'image'      => MODPATH.'image',      // Image manipulation
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜