Hector Virgen gave som hints about how to pass object into partial views and partial loops;
You can pass objects to partials, just pass them in an array:
Hector Virgen gave som hints about how to pass object into partial views and partial loops;
You can pass objects to partials, just pass them in an array:
According to the official documentation, PHP namespaces have been designed to prevent name collisions between classes from different packages 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 something called Zend_Db_Adapter_Mysqli or PHPUnit_Framework_Constraint_IsInstanceOf, after all. This means that namespaces […]
Ralph Schindler writes;
Hey All–
Over the past few days, I’ve been working on a tool that I think might help expedite the task of converting all of our code into a Namespaced codebase. Currently, it’s been tested on simple components like Zend_Acl and Zend_Filter and over the course of the next few days, we’ll be applying it […]
Chris Morrell writes; In most of my applications I like to handle authorization (querying the ACL) in one (or more) of three ways:
Authorize access to a model’s method
Authorize access to a controller action
Authorize access to an arbitrary “permission”
In general I find it’s best to keep authorization within the domain (querying the ACL within my models when […]
John Wage writes; At ConFoo 2010 during my presentation, someone asked about the constructor of entities in Doctrine 2 and whether or not it could be used. I think this is something worth writing about since in Doctrine 1 this was not possible. The constructor was hi-jacked from you and used internally by Doctrine.
In Doctrine […]
CSS3 has not been here for a long time, but talented designers have already found a lot of great ways to use it to create beautiful and efficient techniques. In this article, I'll show you the top 10 examples of what you can do using the power of CSS3.
via 10 examples of futuristic CSS3 techniques.
We visited this concept of re-sizeable background images before… but reader Doug Shults sent me in a link that uses a really awesome technique that I think is better than any of the previous techniques.
via Perfect Full Page Background Image | CSS-Tricks.
Accordions are a UI pattern where you click on a title (in a vertical stack of titles) and a panel of content reveals itself below. Typically, all other open panels close when the new one opens. They are a clever and engaging mechanism for packing a lot of information in a small space.
via Grid Accordion with […]
This is an excellent addition to you tools arsenal if you use Zend Studio and Zend Framework. Kudos to Ivo Jansh for publishing this!
Zend Studio is a great IDE and we use it a lot at Ibuildings (in addition to NetBeans, PDT and Vim). One of the nice features is the code formatter that […]
Matthew Weier O’Phinney writes a very useful article about resource injection; Brandon Savage approached me with an interesting issue regarding ZF bootstrap resources, and accessing them in your action controllers. Basically, he’d like to see any resource initialized by the bootstrap immediately available as simply a public member of his action controller.
So, for instance, if […]
The other day I had to write a NOC application that shows all active phone lines in an out of a customers telecom cluster, thats a lot of constantly changing data that needed to be displayed.
Some design requirements was;
*NO* refreshes i.e. blinking screen parts (gives NOC personel an epileptic fit after a day staring at it).
No […]
Charles Kyle Spraggs writes; I’ve been tinkering around with view helpers quite a bit now and I realized that a lot of what I did in the Dialog could be done much easier by extending the DijitContainer view helper. So, I rewrote the dialog view helper to extend DijitContainer and moved Zend_Dojo_View_Helper_Dijit_Extended to Zend_Dojo_View_Helper_Dojo_Extended because […]
Use this method if at all possible as it will attempt to recover non-English latin1 characters (accents, umlauts) in your existing data.
Confirm your database is currently encoded in latin1.
Make a fresh backup (ideally using mysqlhotcopy se notes below)
Temporarily disable your cronjob so you don’t have anything trying to access the database.
The steps […]
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 […]
Jon Lebensold writes; This video should help you build your own composite Zend_Form element. We’ll be building a phone element. The phone element will have 3 textboxes, one for geographic location, area code and local code. In the following videos will add a custom cell phone validator and some ajax validation.
Grab […]