Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mvc]

The tag has no usage guidance.

0
votes
0answers
16 views

Woocommerce - insert cart data to a a secondry database on a different server

so here is my situation I have a eCommerce website built with Woocommerce - wordpress that is hosted on Godaddy php server, and I also developed an ASP.Net application to serve couple of other ...
1
vote
0answers
194 views

How do I create plugin or theme using MVC pattern?

I am creating theme for property listing and wanted to create a add-on plugin for admin and front end customization using MVC pattern.Does anyone have any solution for same?
1
vote
2answers
840 views

Event-Driven Pattern vs MVC?

In general terms what is it that the MVC framework differs from Event Driven Pattern? Is it even comparable? eg.: Codeigniter vs Wordpress I mean while Codeigniter uses MVC it "watches" the Model/...
0
votes
2answers
36 views

Better way to query posts?

I have several categories on my wp site. On the front page I want to make sections for all of existing categories and than output 4 most recent articles from each of the category. Is there a more ...
1
vote
2answers
3k views

Adding the hook 'vc_before_init' inside a object

I'm working on my first OOP (MVC) based plugin. Everything works perfect, enqueue front/back-end styles, admin menu pages, shortcodes creation, etc... I load my main plugin class using the init hook....
4
votes
2answers
680 views

Adding items to page template dropdown on Page Edit Screen

I am developing a WP theme with MVC approach. It only have index.php, functions.php and styles.css on the parent directory. So, I do not want to place page templates on it rather then I want to ...
0
votes
1answer
170 views

Why load JS through the CMS framework? [duplicate]

Why are we using anything like wp_enqueue_script at all? or register, etc. Why are we sending Javascript through the PHP subsystem? There are all kinds of incompatibilities and inconsistencies ...
0
votes
1answer
3k views

Create page with custom php script and fetched data

I created WP page and I need to show a table with some information. This information is hold in a database (hosted on the same server). To be more detailed, I'll try to split my question. I'm new to ...
3
votes
2answers
1k views

Has anyone tried putting PHP ActiveRecord on Wordpress?

I have worked with Ruby on Rails and I was looking for some code that did something close to the wonderfull RoR's ActiveRecord. I stepped by this site. Its PHP-ActiveRecord! I found it amazing, and ...
1
vote
0answers
56 views

using OOP approach to create plugin but stuck at making hyperlinks to work

I am new to wordpress development so please be patient if my question sounds simple or ridiculous, since I have been doing object oriented programming in PHP so i wanted to use the OOP approach in ...
1
vote
0answers
534 views

How to separate HTML and Wordpress files

I want to separate the HTML and PHP code so that the HTML guys can easily work on their files without disturbing the PHP code, but couldn't find any proper solution or Start point to begin. Please ...
1
vote
2answers
860 views

is it recommended to use an MVC framework in wordpress?

Just started learning wordpress... will start developping soon... is it recommended to start with an MVC framework for wordpress? tbh it's hard to follow/understand plugins as each developer use his ...
2
votes
2answers
4k views

Is wordpress written in MVC pattern?

Is WordPress written in MVC architect? How to understand a CMS is a MVC? A CMS that written in MVC must have directories with named "Model", "Controller", "View"? Sorry for my beginner question .
0
votes
1answer
136 views

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

I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates. However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...
0
votes
1answer
439 views

Kohana Frontend, Wordpress Backend

I love Kohana code, I don't love Wordpress code. I need to upgrade a blog to have a custom theme, very custom with Grid style blog roll (like Pinterest) and Traditional Blog Roll, and fully ...
3
votes
2answers
738 views

How to add a new menu/submenu page in WPMVC? [closed]

I'm completely new to WPMVC. Followed and finished their tutorial for creating plugins. Now I'm trying to add a search page to search Venues (that comes from their example!). This page should appear ...
3
votes
2answers
3k views

require.js to load javascript

whilst wp_enqueue_script seems to work it's not really elegant. I'm currently making a WP front end which uses MVC (backbone.js) and has literally 30+ seperate Model/View/Collection/Controller scripts ...
37
votes
10answers
15k views

How to structure a plugin

This isn't a question about how to build a WordPress plugin. Rather, what, if any, guides could be applied to how to put together the file architecture of any plugin. Some other programming languages ...