Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a site framework skeleton which I've built up over the years and it's very light and powerful and offers a huge array of things which Wordpress doesn't really support. I hope to import it into a Wordpress friendly package so that I can instantiate it from within a theme.

I would really love some advice from those out there as to how it might be best to include Wordpress' inherent methods into the theme?

The framework follows a MVC pattern and is controller lead insofar as the pipeline in its most basic format is roughly like so: enter image description here

I would like to maintain the integrity of the overall framework without messing with it's guts too much. The options I can see at the moment are to either:

(a) Create a Wordpress 'Interface' whereby the controller instantiates Interface = new Wordpress($config)

(b) Create a 'Fat' Model which essentially classifies Wordpress as Business Logic

(c) Create separate M/V/C objects for wordpress

(d) scrappily throw Wordpress functions allover the place

The Question What would the advantages be for the different methods? Which would you suggest?

Thanks very much

share|improve this question

closed as not constructive by Brady Aug 30 '12 at 10:30

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

Browse other questions tagged or ask your own question.