-2

I want to make my own "plugin" to upload my files, cause I can't work with this (https://github.com/josegonzalez/cakephp-upload) with multiples fields and tables, so I've decided to create my own.

So, which part may I put my code? Do I need to create a behavior? Or just put on "AppModel.php" or "AppController.php" to it works? Thanks!

Sorry for the bad english.

2

1 Answer 1

0

If you want to follow MVC protocols, then the code should be in the model. If you want to share the code across the app, then either create a behavior to call on, or place the code in the appModel

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.