Archive for March, 2010

Zend Framework: Passing objects to Partial Views

31 March, 2010

Hec­tor Vir­gen gave som hints about how to pass object into par­tial views and par­tial loops;
You can pass objects to par­tials, just pass them in an array:

Tags: , ,
Posted in Development No Comments »

PHP 5.3 namespaces for the rest of us

29 March, 2010

Accord­ing to the offi­cial doc­u­men­ta­tion, PHP name­spaces have been designed to pre­vent name col­li­sions between classes from dif­fer­ent pack­ages and to avoid the use of very long names in the code to refer to classes or functions—nobody really wants to have to deal with some­thing called Zend_Db_Adapter_Mysqli or PHPUnit_Framework_Constraint_IsInstanceOf, after all. This means that namespaces […]

Tags: , ,
Posted in Development, Documentation, PHP, Zend Framework No Comments »

Introducing a Tool for Namespacing PHP5 Prefixed codebases

29 March, 2010

Ralph Schindler writes;
Hey All–
Over the past few days, I’ve been work­ing on a tool that I think might help expe­dite the task of con­vert­ing all of our code into a Name­spaced code­base.  Cur­rently, it’s been tested on sim­ple com­po­nents like Zend_Acl and Zend_Filter and over the course of the next few days, we’ll be apply­ing it […]

Tags: , ,
Posted in Development, Useful Tools, Zend Framework No Comments »

Namespacing ACL resources and Galahad_Acl

27 March, 2010

Chris Mor­rell writes; In most of my appli­ca­tions I like to han­dle autho­riza­tion (query­ing the ACL) in one (or more) of three ways:

Autho­rize access to a model’s method
Autho­rize access to a con­troller action
Autho­rize access to an arbi­trary “permission”

In gen­eral I find it’s best to keep autho­riza­tion within the domain (query­ing the ACL within my mod­els when […]

Tags: , ,
Posted in Development, Zend Framework No Comments »

Doctrine — Doctrine 2: Give me my constructor back

27 March, 2010

John Wage writes; At Con­Foo 2010 dur­ing my pre­sen­ta­tion, some­one asked about the con­struc­tor of enti­ties in Doc­trine 2 and whether or not it could be used. I think this is some­thing worth writ­ing about since in Doc­trine 1 this was not pos­si­ble. The con­struc­tor was hi-jacked from you and used inter­nally by Doc­trine.
In Doctrine […]

Tags:
Posted in Development, Doctrine No Comments »

10 examples of futuristic CSS3 techniques

22 March, 2010

CSS3 has not been here for a long time, but tal­ented design­ers have already found a lot of great ways to use it to cre­ate beau­ti­ful and effi­cient tech­niques. In this arti­cle, I'll show you the top 10 exam­ples of what you can do using the power of CSS3.
via 10 exam­ples of futur­is­tic CSS3 techniques.

Tags:
Posted in CSS, Development No Comments »

Perfect Full Page Background Image

22 March, 2010

We vis­ited this con­cept of re-sizeable back­ground images before… but reader Doug Shults sent me in a link that uses a really awe­some tech­nique that I think is bet­ter than any of the pre­vi­ous techniques.

via Per­fect Full Page Back­ground Image | CSS-Tricks.

Posted in CSS, Development No Comments »

Grid Accordion with jQuery

22 March, 2010

Accor­dions are a UI pat­tern where you click on a title (in a ver­ti­cal stack of titles) and a panel of con­tent reveals itself below. Typ­i­cally, all other open pan­els close when the new one opens. They are a clever and engag­ing mech­a­nism for pack­ing a lot of infor­ma­tion in a small space.
via Grid Accor­dion with […]

Tags: ,
Posted in CSS, Development No Comments »

Zend Studio code formatter for Zend Framework

21 March, 2010

This is an excel­lent addi­tion to you tools arse­nal if you use Zend Stu­dio and Zend Frame­work. Kudos to Ivo Jansh for pub­lish­ing this!
Zend Stu­dio is a great IDE and we use it a lot at Ibuild­ings (in addi­tion to Net­Beans, PDT and Vim). One of the nice fea­tures is the code for­mat­ter that […]

Tags: , , ,
Posted in Development, Useful Tools, Zend Framework, Zend Studio No Comments »

A Simple Resource Injector for ZF Action Controllers

20 March, 2010

Matthew Weier O’Phinney writes a very use­ful arti­cle about resource injec­tion; Bran­don Sav­age approached me with an inter­est­ing issue regard­ing ZF boot­strap resources, and access­ing them in your action con­trollers. Basi­cally, he’d like to see any resource ini­tial­ized by the boot­strap imme­di­ately avail­able as sim­ply a pub­lic mem­ber of his action con­troller.
So, for instance, if […]

Tags: , , , , , ,
Posted in Classes, Development, Zend Framework No Comments »

DataTables — table plug-in for jQuery

20 March, 2010

The other day I had to write a  NOC appli­ca­tion that shows all active phone lines in an out of a cus­tomers tele­com clus­ter, thats a lot of con­stantly chang­ing data that needed to be dis­played.
Some design require­ments was;

*NO* refreshes i.e. blink­ing screen parts (gives NOC per­sonel an epilep­tic fit after a day star­ing at it).
No […]

Tags: , , , , ,
Posted in Ajax, Development 2 Comments »

Updated Zend_Dojo_View_Helper_Dialog

20 March, 2010

Charles Kyle Spraggs writes; I’ve been tin­ker­ing around with view helpers quite a bit now and I real­ized that a lot of what I did in the Dia­log could be done much eas­ier by extend­ing the Dijit­Con­tainer view helper. So, I rewrote the dia­log view helper to extend Dijit­Con­tainer and moved Zend_Dojo_View_Helper_Dijit_Extended to Zend_Dojo_View_Helper_Dojo_Extended because […]

Tags: , ,
Posted in Classes, Development, Zend Framework No Comments »

Migrating MySQL latin1 to utf8 – In House Version

18 March, 2010
This entry is part 4 of 4 in the series Migrat­ing MySQL latin1 to utf8

Use this method if at all pos­si­ble as it will attempt to recover non-English latin1 char­ac­ters (accents, umlauts) in your exist­ing data.

Con­firm your data­base is cur­rently encoded in latin1.
Make a fresh backup (ide­ally using mysql­hot­copy se notes below)
Tem­porar­ily dis­able your cron­job so you don’t have any­thing try­ing to access the data­base.
The steps […]

Posted in Databases, MySQL, System Administration No Comments »

Zend Framework MVC Request Lifecycle

12 March, 2010

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 […]

Tags: , ,
Posted in Development, Zend Framework No Comments »

Writing Composite Zend_Form Elements

11 March, 2010

Jon Leben­sold writes; This video should help you build your own com­pos­ite Zend_Form ele­ment. We’ll be build­ing a phone ele­ment. The phone ele­ment will have 3 textboxes, one for geo­graphic loca­tion, area code and local code. In the fol­low­ing videos will add a cus­tom cell phone val­ida­tor and some ajax val­i­da­tion.
Grab […]

Tags: , ,
Posted in Development, Videos No Comments »

Get Adobe Flash player