Pragmatism in the real world

Zend Framework 2.0.0 STABLE Released!

Matthew Weier O'Phinney has posted to the ZF blog that Zend Framework 2.0.0 STABLE has been released. Welcome to a new generation of Zend Framework! If you've been waiting, now is the time to download the Skeleton Application, and start playing. There's a fairly good ZF2 tutorial within the official documentation too! Also, don't forget that if you're in the UK/Europe, Evan and I are doing a full day of ZF2 training at the PHPNW12… continue reading.

Evan Coury: Creating a simple view helper in Zend Framework 2

Evan Coury has posted Creating a simple view helper in Zend Framework 2 This post will show you how to create a simple view helper in Zend Framework 2. In this example, our view helper will simply return the full, absolute URL of the current page/request. He goes on to show the code required, including how to inject the Request object into the view helper.

Adam Lundrigan: Quick-and-dirty ZF2: ZendNavigation

Adam Lundrigan has posted a short article on how to use ZendNavigation in Zend Framework 2. He goes through the steps required: Add Service Manager Factory Configure Sitemap Using the View Helpers Well worth a read if you want to use ZendNavigation in your app.

Evan Coury: Using ZendDb’s TableGateway and HydratingResultSet to return rows as custom entity/model objects

Evant Coury has posted Using ZendDb’s TableGateway and HydratingResultSet to return rows as custom entity/model objects The new ZendDb in Zend Framework 2 has a handy feature which allows you to specify your own entity/model class to represent rows in your database tables. This means you can tell ZendDb to return each row as a populated instance of your own custom objects. He then goes through a simple example showing how to save and load… continue reading.

Jurian Sluiman: Use 3rd party modules in Zend Framework 2

Jurian Sluiman has posted Use 3rd party modules in Zend Framework 2 – Jurian Sluiman Because using a 3rd party MVC module does not mean you are enforced to follow their routing scheme, use their view scripts or use the predefined forms, I will explain how you can modify those options to your needs. We hope that there will be a healthy eco-system of third-party modules for ZF2. Jurian's post shows you how to modify… continue reading.

Kyle Spraggs: How does configuration work in ZF2?

Kyle Spraggs has posted How does configuration work in ZF2? As ZF2 increases the beta count and draws nearer to RC I’ve noticed more questions popping up in IRC regarding configuration. Questions like: “How do I setup XXX?” “Where do I add module options?” So, I decided to write up a quick blog explaining how configuration works in ZF2. By default, there are three types of configurations. He then goes on to explain what config/application.config.php,… continue reading.

Padraic Brady: Automatic Output Escaping In PHP And The Real Future Of Preventing Cross-Site Scripting (XSS)

Pádraic Brady has posted Automatic Output Escaping In PHP And The Real Future Of Preventing Cross-Site Scripting (XSS) In the game of mitigating against the risks of XSS, how you escape is not as important as knowing why you are escaping. That second point, understanding why you escape data on output, is unfortunately commonly misunderstood. Yet, without that basic understanding – your choice of how to escape is quite possibly incorrect and, worse, it allows… continue reading.

Kyle Spraggs: ZF Commons – A Zend Framework 2 organization

Kyle Spraggs has posted ZF Commons – A Zend Framework 2 organization Many web applications share features – user management, templating, ACL, blogs, etc. ZF-Commons’ goal is to to produce high-quality, reusable modules for many common tasks that web developers face. In a short post today, Kyle Spraggs encourages all ZF2 developers to help contribute to a set of modules that many applications have need off. If you're writing or planning to write ZF2 applications,… continue reading.

Enrico Zimuel: Cryptography made easy with Zend Framework

Enrico Zimuel has posted Cryptography made easy with Zend Framework In this post I would like to present some of the new capabilities of the ZendCrypt component. Let’s start with the main course: how to encrypt and decrypt data using strong cryptography standards. He then goes on to explain all the cool new features of ZendCrypt and ZendMath, including the use of block ciphers, bcrypt hashes and key derivation functions. Well worth a read.

Gary Hockin: Zend Framework 2 and a Restful Application

Gary Hockin has posted Zend Framework 2 and a Restful Application After speaking to a prospective employer in a job interview, I was interested to try out the ZendMvcControllerRestfulController. With Zend_Json_Server in ZF1 having, shall we say, a less than sterling reputation, it was very interesting for me to see how the strategy has been implemented in ZF2. Gary then explains how to change the Zend Skeleton Application to work with HTTP verbs by changing… continue reading.