Tag Archive

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

Published on 8 December, 2012 By Danny Froberg

I was a bit sur­prised when three peo­ple asked me how to do this in one day. I fig­ured if there was enough inter­est in it then maybe it deserved a post of it’s own. Basi­cally you want to know the pri­mary phone num­ber of the device your app is run­ning on. In order to […]

Understanding the stack index for Zend Framework Controller plugins

Published on 15 July, 2010 By Danny Froberg

Simon R Jones writes a very help­ful arti­cle about the stack index (the order you fire plu­g­ins) and how to cus­tomize it;
Zend Frame­work Con­troller plu­g­ins are a pow­er­ful way to inject logic into your con­troller sys­tem at var­i­ous points, such as before and after an action dis­patch. Plu­g­ins are run in the order […]

Zend Framework: Module Specific Layout Plugin

Published on 2 April, 2010 By Danny Froberg

Gra­ham Ander­son posted an use­ful workaround for the mod­ule spe­cific lay­out problem;
The default lay­out plu­gin will accept a stack of paths in LIFO order.
This allows a very sim­ple hack to always ensure that any mod­ule can have it’s own default lay­out which will auto­mat­i­cally over­ride the default mod­ule layout.
class App_Controller_Plugin_Layout extends Zend_Controller_Plugin_Layout {

    pub­lic function […]

MVC Request Lifecycle">Zend Framework MVC Request Lifecycle

Published on 12 March, 2010 By Danny Froberg

Kevin Schroeder writes an excel­lent arti­cle about the MVC life­cy­cle thats a must read for any­one even think­ing about writ­ing ZF plu­g­ins; Matthew wrote up an arti­cle on mod­ules in Zend_Application and that got me think­ing a lit­tle bit. When I have done train­ing for Zend Frame­work, one of the things that mys­ti­fies students […]

JSON and XML POSTs">App_Controller_Helper_Params for JSON and XML POSTs

Published on 4 February, 2010 By Danny Froberg

Matthew Weier O’Phinney shares a bit of very use­ful code to inject request params into a Zend Frame­work request object from a JSON or XML POST request.
“Below is a plu­gin I use to trans­late JSON or XML raw post request data to request user parameters.
Note that it expects a “Content-Type” header of either “application/json” or […]

HTML valid with Zend Framework, Tidy and Firebug">Keeping your HTML valid with Zend Framework, Tidy and Firebug

Published on 31 January, 2010 By Danny Froberg

Ryan Mauger wrote a good arti­cle on tidy­ing things behind the scenes, dur­ing devel­op­ment, def­i­nitely worth a look;
With Zend Frame­work there is an easy way to ensure that you always cre­ate valid HTML in your appli­ca­tions. This involves the use of a sim­ple Front Con­troller Plu­gin, and the php Tidy component.
Valid HTML is impor­tant for a […]

Bootstrapping Zend_Translate with a LangSelector Plugin

Published on 17 January, 2010 By Danny Froberg
This entry is part 4 of 4 in the series Work­ing 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.

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

Published on 26 May, 2009 By Danny Froberg

Thijs Feryn writes an excel­lent arti­cle on how to con­vert your entire MVC app or one or more con­trollers into a XML ser­vice. I actu­ally have this one in a pro­duc­tion envi­ron­ment and it works like a charm.

That’s right folks, in this blog post I’ll show you how you can con­vert your entire MVC appli­ca­tion into a REST-style XML web­ser­vice. And I’m not talk­ing about refac­tor­ing tons of code … NO, we’ll plug this option in with­out chang­ing a sin­gle thing to your action controllers.

Get Adobe Flash player