Tag: plugin

How to Get the Device’s Phone Number Using PhoneGap Android

How to Get the Device’s Phone Number Using PhoneGap Android

I was a bit surprised when three people asked me how to do this in one day. I figured if there was enough interest in it then maybe it deserved a post of it’s own. Basically you want to know the primary phone number of the device your app is running on. In order to […]

Read More
Understanding the stack index for Zend Framework Controller plugins

Understanding the stack index for Zend Framework Controller plugins

Simon R Jones writes a very helpful article about the stack index (the order you fire plugins) and how to customize it; Zend Framework Controller plugins are a powerful way to inject logic into your controller system at various points, such as before and after an action dispatch. Plugins are run in the order they […]

Read More
Zend Framework: Module Specific Layout Plugin

Zend Framework: Module Specific Layout Plugin

Graham Anderson posted an useful workaround for the module specific layout problem; The default layout plugin will accept a stack of paths in LIFO order. This allows a very simple hack to always ensure that any module can have it’s own default layout which will automatically override the default module layout. class App_Controller_Plugin_Layout extends Zend_Controller_Plugin_Layout […]

Read More
Zend Framework MVC Request Lifecycle

Zend Framework MVC Request Lifecycle

Kevin Schroeder writes an excellent article about the MVC lifecycle thats a must read for anyone even thinking about writing ZF plugins; Matthew wrote up an article on modules in Zend_Application and that got me thinking a little bit. When I have done training for Zend Framework, one of the things that mystifies students to […]

Read More
App_Controller_Helper_Params for JSON and XML POSTs

App_Controller_Helper_Params for JSON and XML POSTs

Matthew Weier O’Phinney shares a bit of very useful code to inject request params into a Zend Framework request object from a JSON or XML POST request. “Below is a plugin I use to translate JSON or XML raw post request data to request user parameters. Note that it expects a “Content-Type” header of either […]

Read More
Keeping your HTML valid with Zend Framework, Tidy and Firebug

Keeping your HTML valid with Zend Framework, Tidy and Firebug

Ryan Mauger wrote a good article on tidying things behind the scenes, during development, definitely worth a look; With Zend Framework there is an easy way to ensure that you always create valid HTML in your applications. This involves the use of a simple Front Controller Plugin, and the php Tidy component. Valid HTML is […]

Read More
Bootstrapping Zend_Translate with a LangSelector Plugin

Bootstrapping Zend_Translate with a LangSelector Plugin

This entry is part 4 of 4 in the series Working with Zend_Translate and Poedit

As an update to the method of hav­ing every­thing related to Zend_Translate and Zend_Locale in the Boot­strap, here is an alter­na­tive using an Con­troller Plu­gin that does the grunt work of val­i­dat­ing, select­ing and updat­ing the Zend_Locale, Zend_Registry & Zend_Session using Zend_Session_Namespace. And we are using poedit .po & .mo files as the source as usual.

Read More
Converting your Zend Framework MVC application into an XML webservice using one single plugin

Converting your Zend Framework MVC application into an XML webservice using one single plugin

Thijs Feryn writes an excellent article on how to convert your entire MVC app or one or more controllers into a XML service. I actually have this one in a production environment and it works like a charm.

That’s right folks, in this blog post I’ll show you how you can convert your entire MVC application into a REST-style XML webservice. And I’m not talking about refactoring tons of code … NO, we’ll plug this option in without changing a single thing to your action controllers.

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.