Tina MVC for WordPress

Tina MVC for WordPress logoTina MVC
for 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?

Have a look at the demo site.

Download and install… documentation and code samples are included with the plugin.

16 comments on “Tina MVC for WordPress
  1. Aldo says:

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

  2. fcrossen says:

    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.

  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:

    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.

  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 ‘user_apps/default’ folder (not in a sub folder). It is then accessible to all page controllers using

    1
    $this->load_view()

    .

    2) Pass the location as a parameter to the

    1
    $this->load_view()

    function. The location is always relative to the Tina MVC plugin folder. For example:

    1
    $this->load_view( 'my_view_file' , NULL , '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.

  11. Tom says:

    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!

  12. admin says:

    Yes, it is still in development and works with 3.5.1.

  13. paladin says:

    Hi,
    Is Tina_MVC support ajax? How?

  14. ruguoaaa says:

    Hello, I installed tina_mvc 1.0.13, and created a php file (tina_mvc/user_apps/default/pages/index_controller.php ) just as samples/01_hello_world_tutorial. when i click http://localhost/wordpress/tina-mvc-for-wordpress/, Only the deafult content show in the page, not the content in the controller;I diactived the plugin and actived it again, the page still showed the default content, I run it on php 5.4.19 and wordpress 3.6.1.

  15. admin says:

    There is no specific Ajax support in Tina MVC – WordPress has it all built in already: http://codex.wordpress.org/AJAX_in_Plugins.

    If you are using Tina MVC with Ajax, you can use the init_bootstrap functionality for your add_action() calls and for enqueuing any scripts you need. Other than that you just code as usual.

  16. admin says:

    When you installed and activated Tina MVC, it should have created a page ‘Tina MVC for WordPress’ on your site. Is that the default content you are seeing?

    On the main Tina MVC page (on the Admin back end) check the page http://localhost/wordpress/wp-admin/admin.php?page=tina_mvc_for_wordpress. At the bottom you will have a list of current Tina MVC pages. For example:
    ——-
    Current Tina MVC pages

    page_title: Whatever
    page_name: whatever
    page_id: 691
    tina_mvc_request: whatever
    ——-
    What do you see when you navigate to the page id above? i.e.:
    http://localhost/wordpress?p=691

    If you continue to have problems, use the contact page to drop me a message and I’ll help you over email.

2 Pings/Trackbacks for "Tina MVC for WordPress"
  1. [...] Homepage | Documentation | Demo [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>