There are some basic defines such as IMG that can be used ..   If you
control the upload, the location can be controlled..

On Apr 14, 2:37 am, cricket <[email protected]> wrote:
> On Wed, Apr 13, 2011 at 8:17 PM, francky06l <[email protected]> wrote:
> > Maybe something like (I haven'y used meiupload, bascally replace the
> > img/ from file name):
>
> > echo $html->image(str_replace('img/', '', $data['model']
> > ['filename']));
>
> No, it's not that. His problem is not having the subdirectory info.
>
> But, if you pass an absolute (from webroot) path, HtmlHelper doesn't
> add '/img'. So:
>
> echo $this->Html->image(
>         $data['model']['dir'].$data['model']['filename']
> );
>
> Where dir is something like '/img/subdirectory/'.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to