Tina MVCfor WordPress
Tina MVC is a WordPress solution for developing WordPress plugins, widgets and shortcodes using a MVC design pattern. It is used as the basis for almost all of our WordPress work.
The GPL version is available from the WordPress plugin repository.
Where Next?
Download and install… documentation and code samples are included with the plugin.
I was wondering if it was possible to make this plugin work with WordPress Multisite. Thanks.
Tina MVC is compatible with WordPress Multisite.
The plugin is enabled on a per-site basis. Sites can share the same applications or can use different application folders per site.
How can I share controllers and views on a multi site with domain mapping ? currently the sample pages only show on the main site and not on the others.
If you want to share the same controllers and views across all sites on a Multisite install then create your controllers in the ‘user_apps/default’ folder.
In each WordPress site you will need to activate the Tina MVC plugin. Each site will use the same controllers, views and models.
Shout if you need more help.
Thanks for the reply
How I activate the plugin for each site. I only see the option in the “Network Admin” to activate that plugin once.
ahh I see. Thank you !!
Hello, Can my current controller use a view from inside another controllers folder ?
Yes, you can. Either:
1) Put the view file in the ‘user_apps/default’ folder (not in a sub folder). It is then accessible to all page controllers using
.
2) Pass the location as a parameter to the
function. The location is always relative to the Tina MVC plugin folder. For example:
Hi,
Can Tina be used on a web site that has commercial purposes without having to open source the web site itself? Not quite sure about the license.
Also any integration with jQuery UI/ extJS ?
Thanks
Hi Atanas,
If you use the version of Tina MVC from the WordPress Plugin Directory then it is GNU General Public License, version 2 (GPLv2) licensed. In that case your Tina MVC application will also be GPLv2 and open source.
I can provide you with a commercial license for Tina MVC if you want. In that case you would not need to open source your app. Contact me if you need more information on this.
> Also any integration with jQuery UI/ extJS ?
There is no need for specific integration with the JS libraries you describe. Just add your JS file using wp_enqueue_script() – usually in the constructor of your page controller, or in the class method (if you only need it on one page). You can also put it in a SCRIPT tag in your view file if you prefer.
I usually use the WordPress supplied jQuery library for my Javascript or AJAX requirements.
hello, i was wondering if this plugin is still in development, or if it has been abandoned? Do you know if it as least works with the latest version of WP? Thanks!
Yes, it is still in development and works with 3.5.1.