Hi,
I've been working with Phalcon 3 (and previously Phalcon 2) for a while now and really like it as a framework.
I'm starting a new project which will comprise of both a MVC and Micro implementation but have a lot of shared code (eg models, libraries, etc) so looking to create composer libraries for each module so they can be independent.
I have a parent repository for both MVC and Micro which would require these packages.
However, I haven't quite worked out how that would work in regards to controllers and/or views for each.
At the moment I've been looking to set up something along the lines of the following:
- config/
- library/
- models/
- Module.php
Would I be best to put all controllers and views in here as well?
For the MVC part that works with no issue, but how could I incorporate the Micro framework?
The Module.php file has the DI setting up the view
component which isn't needed by it but it does set up the db
component which would be needed by both MVC and Micro.
I guess what I'm asking is, is there a way of setting this kind of project up?
Thanks,
Gary