Event-Driven Pattern vs MVC?

I will try to explain it simplest as i can: MVC Framework – Is a framework, that uses MVC software architectural pattern. This pattern sepatares logic in Controller, data in Models, and HTML code in Views. This 3 are separated in different files, so code is cleaner. Event Driven Pattern – Is a software architecture … Read more

Is wordpress written in MVC pattern?

WordPress dosen’t follow MVC (Model-View-Controller) nor is written with OOP approach in mind. Anyway you can write your plugins with a MVC pattern or using OOP. One excelent tool to use MVC in WordPress is WP MVC

What’s the most minimal way in which a page can be hooked into WP?

The template_redirect hook might be what you are looking for. function template_redir_wpse_97289($content) { // code or file include, for example } add_filter(‘template_redirect’,’template_redir_wpse_97289′,1); That will fire just before the page template is loaded so you could use it to load your own templates.

Has anyone tried putting PHP ActiveRecord on WordPress?

If you plan to use it just for your own code, and have it running alongside WordPress’ default database driver (wpdb), I see no real problems. It’s only if you plan on fully integrating/overriding WP’s driver that I see it being near-impossible; hard-coded SQL is prolific throughout core, and translating them to ActiveRecord method calls … Read more

Adding items to page template dropdown on Page Edit Screen

I thought I would provide you with another approach. It is also a bit hackish, but it is general purpose and allows you to simply register the filename and label that you want to use, like so: if ( class_exists( ‘WPSE_196995_Page_Templates’ ) ) { WPSE_196995_Page_Templates::register_page_template( ‘My Page Template’, ‘my-page-template.php’ ); } You could add the … Read more