wpemerge icon indicating copy to clipboard operation
wpemerge copied to clipboard

How to handle the Model part of MVC.

Open BlackBearFTW opened this issue 1 year ago • 1 comments

Hi, the documentation currently contains no way to handle the retrieval of data or data mapping to a modal, so I would like to ask two questions:

  • Why is this not part of the documentation?

  • Can I use something like corcel or eloquent ORM for this, and how would I set that up (including migrations)?

BlackBearFTW avatar Dec 20 '23 21:12 BlackBearFTW

In the comparison table there is a x at M(odel). So there is no integration for Models, I think. I hope they will implement this in the future. I'm testing the framework but I need Models, too.

I will test to merge "WordPress MVC"s Model in WP Emerge because I like it with the routing.

Edit: I installed https://github.com/drewjbartlett/wordpress-eloquent. It's better and simpler for Eloquent in WordPress. You can't create migrations with this.

delennerd avatar Feb 08 '24 14:02 delennerd