Monday, 1 December 2008Zend_Paginator: First Impressions
I have been working on a fun project recently which is built on Zend Framework. While looking at options for paginating a large result set, I came across a Zend Framework module called Zend_Paginator ... and it does just what it says on the tin!
The idea of this module is to allow collections of data to be paginated. It takes the set, restricts the results, and can also generate the page numbers you need to move around between the resulting paginated data. Basically it saves me writing the same pagination code multiple times and then having to fix the bug where the last result on the previous page appears on the next ... all this has been thought of already. Ga door met lezen van "Zend_Paginator: First Impressions" Monday, 3 November 2008PHP Showcase: Kieskeurig.nl
With more than 1 million visitors a week Kieskeurig.nl is the largest dutch product comparison platform. Kieskeurig allows users to do a product and or price comparison on almost any type of product on the (Dutch) market. Users are able to review and rank both products and shops. Its main goal is to help other users to make the right purchase. Kieskeurig recently launched their renewed website.
If you're familiar with the site you'll notice the difference immediately. Not only the design has changed but also the interface got many improvements. The new interface is more consistent and well-organized. Ga door met lezen van "PHP Showcase: Kieskeurig.nl" Tuesday, 14 October 2008Future of Web Apps 08
We just spent two fantastic days at the Future of Web Apps conference in London. There were so many PHPers around, most of whom we'd never met before, and it was so cool to hear about your current projects - there seems to be so much going on at the moment, despite the economic downturn! When we weren't playing with Microsoft Surface or riding the Sun "surfboard", we heard the founder of Digg bashing PHP - or at least announcing that they are moving some of their software into Python. The rumour says this is because of a need to use real threading and some other features that PHP cannot provide at the moment, and in that case - for those components - it's the right decision (it's as important to know when to use PHP, as it is when not to).
Ga door met lezen van "Future of Web Apps 08" Friday, 29 August 2008Zend Framework testing: emulating HTTP calls
Following last month's article by Ian, here's some thoughts on how to test a Zend Framework application.
One of the unit testing best practices suggests to break dependencies, so you can test each component separately. The first problem that arises when you want to test controllers might be having a tighter control over the HTTP Request and Response objects. Fortunately, ZF already has something that really makes your life easier, i.e. the Zend_Test_PHPUnit_ControllerTestCase class, which has stubs for the Request and Response objects, and you can easily check headers, return codes, routes, redirects, and even the view itself. Ga door met lezen van "Zend Framework testing: emulating HTTP calls" Sunday, 27 July 2008Dependency Injection and Zend Framework ControllersAmong the standard object oriented principles is favouring composition over inheritance, and there are plenty of design patterns that work along this line. However, one of the most useful day-to-day facets of the idea doesn't seem to get a lot of attention from PHP developers, namely dependency injection. The general idea is, that if your class depends on some other object, that object should be passed in rather than generated internally or retrieved via a global variable or singleton. Ga door met lezen van "Dependency Injection and Zend Framework Controllers"
Geplaatst door Ian Barber
in planetphp
op
17:02
| Reacties (8)
| Trackbacks (2)
Tags voor deze bijdrage: dependency injection, design patterns, framework, mvc, use at will, zend framework
Tuesday, 31 October 2006Kijkje in de blog-keukenDe RSS-feed van mijn persoonlijke blog is bijvoorbeeld: http://www.ibuildings.nl/blog/feeds/authors/Jeroen-van-Sluijs.rss Ga door met lezen van "Kijkje in de blog-keuken"
(Pagina 1 van 1, totaal 6 artikelen)
|
Blog
