Plugin Directory

Tina MVC

Tina MVC is a WordPress development framework that allows you to develop plugins, shortcodes and and widgets.

What is Tina MVC used for?

It is used for all my WordPress development at this stage. WordPress became my development platform of choice in early 2010 and Tina MVC allows me to develop client sites as WordPress plugins.

Where can I get documentation?

  1. See http://www.seeit.org/tina-mvc-for-wordpress/ for tutorials
  2. Try out some of samples in 'tina-mvc/the sample_apps' folder. They are all well commented.
  3. See http://www.seeit.org/tina-mvc-documentation/complete/ for phpDocumentor documentation. This is generated from the source, but may not be completely up to date.

How do I start writing my code?

The default install will create 2 new WordPress pages. One will be a public page that will act as a front end controller page. It will contain some basic instructions on how to proceed. The package contains some sample applications to get you started. If you do anything funky with Tina MVC, why not submit it to us for inclusion as a sample?

Does Tina MVC work with WordPress Multisite?

Yes. You can have all sites use the same application files, or have different application files for each blog within your network.

I'm getting PHP Errors

Minimum requirements are PHP 5.1 and WordPress 2.9.1.

My changes to `tina_mvc_app_settings.php` are being ignored...

The tina_mvc_app_settings.php file is only checked on plugin activation. Deactivate/reactivate the plugin to load the new settings.

Can Tina MVC create posts on activation like it does pages?

Yes. Put your code into tina-mvc/app_install_remove/tina_mvc_app_install.php. Tina MVC will include it on activation and call the function tina_mvc_app_install().

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

Yes. Just specify the view file name you want to use when you use the $this->load_view() function. You can also specify a custom location for your view file:

$this->load_view( 'my_view_file' , FALSE , 'path/to/view/file/from/tina-mvc/folder' )

Why are there HTML template files in the plugin folder?

Tina MVC applications are designed to be completely independent of the theme you use. The templates only format the post/page/shortcode/widget content. You should be able to use any theme you want with a deployed Tina MVC application. This allows you to crack on with development while your designer (if there is one) deals with the theme. Of course there is nothing to stop you putting code and calls to tina_mvc_call_page_controller() in your templates if you prefer.

I'd love to see `insert feature here` in Tina MVC. How can I request this?

See Where can I get support? below and just ask.

Where can I get support?

The 'Plugins and Hacks' forum (http://wordpress.org/tags/tina-mvc?forum_id=10) or at http://www.seeit.org/tina-mvc-for-wordpress/.

Requires: 2.9.1 or higher
Compatible up to: 3.2.1
Last Updated: 2012-4-26
Downloads: 2,853

Average Rating

5 stars
(2 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,1,0 0,1,0 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1