tombenner / wp-mvc

An MVC framework for WordPress
http://wpmvc.org
MIT License
623 stars 172 forks source link

Combine Core and App into one Plugin #261

Closed nathanielkam closed 1 year ago

nathanielkam commented 1 year ago

I am wanting to developer a new plugin based on wp-mvc but after doing the tutorial and reviewing the generated files it appears that this always requires BOTH the wp-mvc plugin AND then the generated PLUGIN/app code.

Is there any way to move core from wp-mvc to my plugin so id have plugin/app and plugin/core or plugin/vendor/wp-mvc/core like how composer would normally do it?

Have looked through the tutorial and documentation a few times and don't see a way to do this. Have also tried manually merging these directories together but get autoload errors / directory path issues so doesn't seem it was intended to be used in this manner.

nathanielkam commented 1 year ago

@cyberscribe any thoughts on a core + app directory in one plugin?

cyberscribe commented 1 year ago

Unfortunately it is not designed as a framework in this way

On Wed, 12 Apr 2023 at 08:19, Nathaniel Kam @.***> wrote:

@cyberscribe https://github.com/cyberscribe any thoughts on a core + app directory in one plugin?

— Reply to this email directly, view it on GitHub https://github.com/tombenner/wp-mvc/issues/261#issuecomment-1504787834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFJLZJQT2RN7BMV34GMXMLXAZJPNANCNFSM6AAAAAAW3IUBPY . You are receiving this because you were mentioned.Message ID: @.***>

-- Sent from Gmail Mobile

nathanielkam commented 1 year ago

@cyberscribe totally understand, thank you for the quick response