Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using in other views. #4

Closed
JulesBern opened this issue Feb 27, 2013 · 2 comments
Closed

Using in other views. #4

JulesBern opened this issue Feb 27, 2013 · 2 comments

Comments

@JulesBern
Copy link

How would I go about using this say if I have baked Products
so in /app/View/Products/add.ctp

Essentially I want to be able to upload images specific to this product.

(as standalone form the plugin works just fine like domain.com/file_upload)

Thanks

@michalkow
Copy link

Just add the $helper in your controller:

public $helpers = array('FileUpload.UploadForm');

Then you can access the helper in your add.ctp view file by:

$this->UploadForm->load();

You will need to add CSS styles if you want to use default ones.

@hugodias hugodias closed this as completed Jun 6, 2013
@alexleandrom
Copy link

Hi @hugodias we can associate this model upload to other model. I just want to get the id of the upload and associate to other model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants