josegonzalez/upload — pull request #47 by hiryu85 (2012-02-01 23:25:25+00:00)
Title: Thumbnail helper

I wrote a helper for embed Upload's thumbnails in my view, without hardcode thumbnails path or use virtualFields (etc..).
This helper is currently only has two methods: url() and image().

### image(string $ModelAndField, string $thumb_size_name, array $modelData, array $HtmlHelperAttributes)
```
$data = $this->User->findById(2);
echo $this->Thumbnail->image('User.avatar', 'big', $data)
```
print *<img src="X/user/id/2/big_file.png" [...] / >* (Use HtmlHelper)

### url(string $ModelAndField, string $thumb_size_name, array $modelData)
```
$data = $this->User->findById(2);
echo $this->Thumbnail->url('User.avatar', 'big', $data)
```
print X/user/id/2/big_file.png