Question

So, CakePHP is a really awesome MVC framework, but I'm looking to better understand the MVC architecture in it, especially for services and organizing logic.

I currently have a lot of logic in components related to models, but I want to do some processing with that same logic in a shell script. I'm not sure if I'm approaching it correctly. I'm particularly concerned about technical debt and scaling maintainability. I don't want to go down this road then have to turn back. Thanks in advance for any and all pointers, best practice tips, etc.

Was it helpful?

Solution

You probably want to move the component logic you mentioned into models. Generally you want more of your logic in the model layer than the controller layer (which includes components).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top