Till posted this little snippet; It’s so useful I just had to share it find . \( –name “*.php” –o –name “*.phtml” \) –exec php –l {} \; Just go to your project directory and fire it off, it will help you find those pesky unmatched {}
Bill Karwin posts a useful little snippet that will list and search each class for function names that match except for the underscore prefix, private / protected functions. <?php /** * Find methods that differ only by the underscore prefix. * by Bill Karwin August 2010 * * I release this […]
Here is an interesting project that could prove quite useful for us PHP buffs; PHP for Android project (PFA) aims to make PHP development in Android not only possible but also feasible providing tools and documentation. We currently have an APK which provides PHP support to ASE (PhpForAndroid.apk). Irontec is the company behind this project. About […]
I have som rather large and time consuming queries running in the Statistics screen of an NOC (Network Operations Center) Flex/Flash Builder 4 application i’we been tinkering with, to prevent the database server to be boggen down by multiple queries fired by this app in multiple places I had to implement caching. And to do […]
Writing maintainable code is an art that takes effort and practice to master. Part of that art is learning what tools and strategies will assist you in that effort. In this tutorial, we will cover a variety of practices and tools that can make your life, and the lives of your team members, easier as […]
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 […]
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 […]
Take a peak at Web Developer Juice’s writeup on how to configure and use ActiveMQ (Message Queues), defenitely worth the read. Apache ActiveMQ is one good option for implementing message queue in your PHP application. It can be easily installed on your server and it’s web accessible admin interface really makes administrator’s life easy. It can […]
Romain Lalaut wants some feedback on his proposal for Zend_Session_SaveHandler_Cookies is a save handler which stores data into the cookies client. The main benefit is to avoid the storage of such data on the server. It is especially useful when you have a farm of servers to manage. Give him a hand here Zend_Session_SaveHandler_Cookies.
While pouring over some posts about Doctrine I stumbled upon a very nice solution to the Cascading Delete issue when using the SoftDelete behaviour on an Doctrine Model. Here is what the guys at Elink Media writes; I have been using Doctrine ORM for a while now. Here I want to discuss 2 tricky issues […]
Bradley Holt writes a good article about Front Controller Patterns; I recently gave a Zend Framework Introduction presentation at our local PHP Users Group. I built a demo blogging application called Postr that I used as an example throughout the presentation. There was way too much material to cover in the time available so I […]
Chris Hartjes writes a very nice article about how to make (re)usable zend_forms; After searching around online for some examples of building simple forms, I was dismayed to discover there were two different ways of building the form. I could (a) do it the long way and create specific instances of the form elements using […]
On behalf of the Zend Framework team and the framework’s many contributors, I’m pleased to announce the immediate availability of the stable release of Zend Framework 1.10.0. You can download it from our downloads page:
Jon Lebensold publishes the second part of his series on using Doctrine in combination with Zend_Auth & Zend_Auth_Adaptor; Here’s the second part of my Doctrine / Zend_Auth example. In 15 minutes, we create a logout, login and protected area that’s reliant on the ZC_Auth_Adapter adapter we created in last week’s video. Notice how there’s no […]
Jon Lebensold publishes another installment of his popular screen cast series, he writes; I’ve been using Doctrine a lot in my own work, and recently found myself itching to have tighter integration between Zend and Doctrine when it comes to user logins. Luckily, Zend provides a very simple interface with regards to Zend_Auth. This way, […]