Tina MVC for WordPress

Tina MVC for WordPress logoTina MVC
for WordPress

Tina MVC

Tina MVC is a WordPress solution for developing WordPress plugins, widgets and shortcodes using a lose MVC design pattern.

It is used as the basis for much of our WordPress work.

The GPL version is available from the WordPress plugin repository.

Where Next?

Try the install and quick start tutorial

For more information feel free to contact us.

10 Comments

  1. Aldo says:

    I was wondering if it was possible to make this plugin work with WordPress Multisite. Thanks.

  2. fcrossen says:

    Hi Aldo,

    I haven’t tried the plugin with Multisite, but I can’t see why it wouldn’t work, and it is on my to do list.

    Download a development version from SVN and try some of the sample apps. If you have any problems let me know.

    Update:

    The stable version of Tina MVC works fine with WordPress Multisite. The plugin is enabled on a per-site basis and all sites share the same applications.

    If you want to use different application folders per site, then you will need to download the development version (http://downloads.wordpress.org/plugin/tina-mvc.zip).

  3. leo says:

    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.

  4. fcrossen says:

    Hi Leo,
    If you want to share the same controllers and views across all sites on a Multisite install then just create your controllers as normal and put them into the ‘app’ folder.
    In each WordPress site you will need to activate the Tina MVC plugin. Each site will use the same set controllers, views and models from that ‘app’ folder.
    Shout if you need more help.

  5. leo says:

    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.

  6. leo says:

    ahh I see. Thank you !!

  7. leo says:

    Hello, Can my current controller use a view from inside another controllers folder ?

  8. fcrossen says:

    Yes, you can. Either:

    1) Put the view file in the app folder (not in a sub folder). It is then accessible to all page controllers using $this->load_view().

    2) Pass the location as a parameter to the $this->load_view() function. The location is always relative to the Tina MVC plugin folder. For example:
    $this->load_view( 'my_view_file' , FALSE , 'path/to/view/file' )

  9. Atanas says:

    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

  10. fcrossen says:

    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.

Leave a Reply