您的位置:首页 > 编程语言 > PHP开发

[Yii Framework] A component for creating and getting the thumb image path

2010-08-23 22:30 393 查看
There may be another good way to create and get the thumb image in Yii, here is my method to do it.

1. You have to install this extension, "phpthumb", please search this extension in this website. 代码
Yii::import("application.components.ImageThumb");
$imageThumb = new ImageThumb();

$imageOne
= $imageThumb->createThumb("example.jpg", "", 580, 280);
$imageTwo = $imageThumb->createThumb("example2.jpg", "s", 100, 70);


[/code]

Have fun with Yii.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐