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

Upload Model not found #3

Closed
janboden opened this issue Dec 5, 2012 · 1 comment
Closed

Upload Model not found #3

janboden opened this issue Dec 5, 2012 · 1 comment
Labels

Comments

@janboden
Copy link

janboden commented Dec 5, 2012

I've found a small issue in the UploadComponent on line 27.

You've got:
$this->UploadModel = ClassRegistry::init('Upload');

but because it's a plugin, you're not loading the Upload model within your plugin but the default AppModel of the application you're running. Changes made in the plugins Upload model will be useless because that's not the model you're using.

Change it to:

$this->UploadModel = ClassRegistry::init('FileUpload.Upload');

In this case you are using the Upload model inside the plugin so changes (like $useTable) will have it's effects when you want it to.

hugodias added a commit that referenced this issue Dec 5, 2012
@hugodias
Copy link
Owner

hugodias commented Dec 5, 2012

Thanks @inteiro . Just fixed it !

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

No branches or pull requests

2 participants