Once we have our plugin enabled, you can make calls to ZendFramework 2 classes from any php file

Here are several examples:


Render Contact Form in index.php

 


A Simple Shortcode

/wordpress/wp-content/themes/yourtheme/functions.php

When we use the shortcode [form] the contact form will be rendered, according the zendframework 2 action /application/index/contactform == /yourzf2modulename/controllername/viewname/


You can use WordPress functions from ZendFramework 2

/wordpress/wp-content/plugins/wpzf2/module/Application/Controller/IndexController.php

And you can call this piece of code on any wordpress php file following way:

 

Briefly we introduce more code examples.