[Plugin: WP MVC] Is a Model without a db table possible?
I’ve got a use case where I’m processing some data and would like a model-view-controller set, but where the model is simple a collection of objects which result from some processing.
In the more general case, a model might ‘back’ onto an rss feed, 3rd party JSON api, etc etc etc.
Has anyone done anything like this with WP MVC yet?
A quick inspection of mvc_model.php suggests it’s pretty db specific.
My instinct would be to have an abstract base MvcModel (or interface) and a MvcDatabase based implementation derived from it. Maybe MvcModelBase as the abstract class, and MvcModel as the Database backed implementation of it.
Thoughts / suggestions greatly appreciated
- The topic ‘[Plugin: WP MVC] Is a Model without a db table possible?’ is closed to new replies.