I used this tutorial as the basis for uploading files in my
application. This line should replace the 2 lines in the view that are
causing the issue.

echo $form-
>input('File.image',array('type'=>'file','class'=>'required','size'=>'50'));

I'm using the size parameter in mine just to increase the length of
the box the file name is displayed in. The class=>required part fits
in with cakePHP's default styles to give it the * next to it.


On May 13, 5:34 pm, Chris <theswimmingf...@gmail.com> wrote:
> What you'll probably need is this 
> tutorial.http://tv.cakephp.org/video/jasonwydro/2011/01/29/cakephp_1_3_-_meio_...
>
> Very easy to follow and get to work. I've used it in several projects.
>
> On May 13, 7:50 am, barricades <davow...@googlemail.com> wrote:
>
>
>
>
>
>
>
> > Hey there, I'm using the tutorial 
> > athttp://www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images...
> > to try to get myself up and running with the ability to upload images.
>
> > Now, I'm very new, and really haven't a clue so this is probably the
> > most stupid question in the world but I don't know whats going on.
>
> > Basically I follow the tutorial as best I can but when I load the page
> > which is supposed to have the input for the image I get the rest of
> > the form but then get 2 errors:
> > Method FormHelper::labelTag does not exist
> > and
> > Method HtmlHelper::file does not exist
>
> > I've searched but only got more confused. There is something I'm meant
> > to include that i've missed isn't there?
>
> > confused...

-- 
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to