3dvd-box Titanic, the last mysteries
€19.95
Tina MVC for WordPress

Welcome to Tina MVC

This is the sample Tina MVC front end controller page as shipped. The intention of this page is to give you links
to the various sample apps. It assumes you have copied `sample_apps/*` to `app/`. If you would like to revert
that action, then delete `app/*`.

Sample Applications:

Page Controller Controller for widgets or shortcodes Description
tina-mvc-for-wordpress index This page. In this case the `index_page.php` is loaded from `tina_mvc/app` but the view file (`index_view.php`)
is overridden by `app/tina-mvc-for-wordpress/index_view.php`.
Uses the default front end page controller page (`tina-mvc-for-wordpress`).
tina-mvc-for-wordpress/contact-form contact-form A simple contact form using the Tina MVC form helper class (tina_mvc_form_helper_class.php).
If you enter your reCaptcha
API keys in your tina_mvc_app_settings.php file, then a reCaptcha field will be used.
Copy tina_mvc_app_settings_sample.php to get started.
Uses the default front end page controller page (`tina-mvc-for-wordpress`).
tina-mvc-for-wordpress/test-form test-form A more complex form. This will/should use all the field types available in the Tina MVC form helper class
and serve as a tutorial in its use.
Uses the default front end page controller page (`tina-mvc-for-wordpress`).
tina/simple-form simple-form A more complex form. This will/should use all the field types available in the Tina MVC form helper class
and serve as a tutorial in its use.
Uses the default private front end page controller page (`tina`).
tina/test test A very simple test page showing how the Tina MVC page request is passed to your page controller.
Does not use a view/template file.
Uses the default private front end page controller page (`tina`).
tina-mvc-for-wordpress/sample
and
tina/sample
sample A sample page for use in Widgets, shortcodes or pages. Because it is located in the `app/` folder it is accessible
via any Tina MVC front end controller page. They can also be accessed with the `tina_mvc` shortcode or
from the Tina MVC widget.
Can be accessed from any front end page controller page (default `tina` and `tina-mvc-for-wordpress`).
tina-mvc-for-wordpress/shortcode
and
tina/shortcode
shortcode Another sample page for use in Widgets, shortcodes or pages.
Can be accessed from any front end page controller page (default `tina` and `tina-mvc-for-wordpress`).
tina-mvc-for-wordpress/dispatcher-example
and
tina/dispatcher-example
dispatcher-example An example of the new dipatcher in action.
Can be accessed from any front end page controller page (default `tina` and `tina-mvc-for-wordpress`).
tina-mvc-for-wordpress/widgets/page-list
and
tina/widgets/page-list
widgets/page-list An example of how you might organise your widgets in a single class. This lists the child and grandchild pages of the current page
Can be accessed from any front end page controller page (default `tina` and `tina-mvc-for-wordpress`).

Shortcodes

Tina MVC implements the `tina_mvc’ shortcode as an enclosing or self-closing shortcode:

[ tina_mvc controller='' role_to_view='whatever' capability_to_view='']
and

[ tina_mvc controller='' role_to_view='whatever' capability_to_view='']default content[/tina_mvc]

Only the controller attribute is required. Role and Capability to view can be entered as a comma separated list. To make the shortcode
visible to all users, use the value ‘-1′.

Shortcode example 1

[ tina_mvc controller='sample' role_to_view='-1']

This text is generated from the ‘sample’ controller
19:26:35
2012-02-22

Shortcode example 2

[ tina_mvc controller='shortcode' role_to_view='-1']
tina_mvc.php::tina_mvc_get_instance_of() (line 118) File ‘shortcode_page.php’ not found. Looked for:
– /var/www/htdocs/wp-ouder/wordpress/wp-content/plugins/tina-mvc/app/tina-mvc-for-wordpress/shortcode_page.php
– /var/www/htdocs/wp-ouder/wordpress/wp-content/plugins/tina-mvc/app/shortcode_page.php
– /var/www/htdocs/wp-ouder/wordpress/wp-content/plugins/tina-mvc/app/shortcode_page.php


You can change how Tina MVC handles this condition by changing the value of
$tina_mvc_missing_page_controller_action in your application settings file at tina_mvc_app_settings.php.

Shortcode example 3

[ tina_mvc controller='sample' role_to_view='administrator,editor,author']<b>You are not `administrator`, `editor` or `author`!</b>[/tina_mvc]
You are not `administrator`, `editor` or `author`!

Widgets

The Tina MVC Widget allows you to call a controller as a widget. If your page does not return any data the Widget is not displayed.

There is nobody logged in and there are no permissions required to view this page.