Why I switched from ZF 11

Please note all the reasons I'm about to give are the reason I had at the time I quited ZF, that's like 6 months ago or so, so be aware that things may have evolved, and since this is not a rant, I won't even check if they actually changed (as I really don't give a damn). Also, I'm writing this...

Now working at Sensio Labs

A quick post to tell (for those not knowing already) that I now work at Sensio Labs, creators of the symfony framework. Expect some symfony stuff to be posted regularly \o/ For those wondering, yes that means I'm actually dropping any previously started ZF related development for good, I'll post...

Zend Framework 1.5.1 PEAR package is available 1

A little late sorry, but ZF 1.5.1's package is now ready....

Zend Framework 1.5 PEAR package is available

The long awaited 1.5 version of the Zend Framework has landed for some days already, and here comes its pear package. Please note the api version changed to 1.5 in this package....

Zend Framework 1.0.4 PEAR package is available

The package for the last 1.0.x release, 1.0.4, is now available on the phpmafia pear channel. Please report any issue in the comment of this post. The Zend_Locale's xml bug should now be fixed (they are now considered as php and thus put at the right place, which is not the best way to fix the bug...

Zend Framework 1.0.3 PEAR package 1

Just to say I packaged the 1.0.3 version of the zend framework on the phpmafia pear channel. It's a bit late I know, but at least it's here. Please note that I already have been notified of a problem regarding the Zend Locale's xml datafiles and that I hope to have worked out a solution for the...

Accessing raw post data in a controller

For some reason, $HTTP_RAW_POST_DATA does not seem to be set inside an action controller. You'll have to use the php://input stream wrapper to access raw http post data: [php] $raw_post_data = file_get_contents('php://input');...

Extending Zend_Controller_Router_Route: the singleton problem. 5

Today I ran into an issue while extending Zend_Controller_Router_Route. I wanted to add a little path pre/post processing in the match() and assemble() methods, so I just extended the Route class to add my tiny bits of code into the methods. Except it did not work at all. After a few debuging, it...

How I use the Zend Framework 7

Having started a few applications using the Zend Framework, I came out with a few practices that I tend to use over and over. In this post I'll quickly expose some of them and explain why I do things the way I do them. As you'll notice, most of them are already widely known and used over the ZF...

New home for pagination component documentation

For those caring, I just posted some quick documentation for the pagination component at my assembla space. More docs will follow (including extensive phpdoc docblocks I hope)....

Zend Framework 1.0.2 PEAR package is available 2

A PEAR package for the 1.0.2 version of the Zend Framework is now available from the PEAR PHPMafia channel. As usual, to install just issue the following: [bash] pear channel-discover pear.phpmafia.net pear install phpmafia/Zend...

Bugfixes release of Zend Framework pagination component 3

I just released on riskle's assembla space a new version of my pagination component for the Zend Framework which you can download right now: Riskle Paginate r122 This release fixes a nasty bug in Riskle_Db_Table::fetchCols which prevented from retrieving the right count of cols involved in the...

Of controller plugins and directory layout

When anyone on #zftalk ask about where controller plugins should be kept, we usually responds something like have your own library namesapce alongside Zend/ and put it in it like YourNamespace/Controller/Plugin/YourPlugin.php. But what about application specific controllers ? There's a time where...

Zend Framework Pagination, third strike 7

UPDATE: new version (r105) available. The component was given a little rewrite as expected, but maybe a little bit later than I would have wanted to :-) So it now has its own Rowclass proxy from which you can pull various infos such as current page, page range, next page, etc all exposed as getter...

Riskle_Form, a quick wrapup 3

So well, I've been busy these days working on my own implementation of a form component in the ZF spirit. This post is to help me see where I'm at with this component, as well as planning future evolution. I'll try my best to describe what it does and does not, and what it could do in the future. Of...

findBy{$Field} with Zend_Db_Table

A quick post to show how one can easily implement a findByField wrapper in Zend_Db_Table: [php] /** * Implements a simple findByField wrapper */ public function __call($method, $args) { if (preg_match('/^findBy([a-zA-Z0-9]+)$/', $method, $parts)) { $field =...

Zend_Db_Table and tables relationships 7

When developping a database tied application, you eventually come to a point where you get (at least) two tables with a parent/child relationship, such as for example a User table referenced by, say, a Post table (each post belonging to a specific user). That's basically the point where you need...

Stripping the logic: the Transfer Object 2

Sometimes you have to pass an object data to another object, or to another layer of your application (who said controller/view ?), while ensuring that the receiving entity will not be able to run business code encapsulated in your class. In the Zend Framework, several objects provide a toArray...

Zend Framework Pagination reloaded 8

UPDATE A new version of this component is available. I have a new version of my pagination component which solve the issue previously pointed out by Guy. This update comes along with a subclassed version of Zend_Db_Table which allows counting and specific columns selection respectively via the...

Searching the Zend Framework's manual: Google Co-op to the rescue 3

While the Zend Framework's manual is somewhat quite good, it lacks a feature that make it a really good manual: search. I find it very frustrating to not be able to make a simple search and therefor having to browse through the extensive TOC to find what I'm actually looking for. Here enters the...

- page 1 of 3

Top tags