Search

Custom Zend Framework Router

Saturday, June 30. 2007

Zend Framework One could tweak Zend Framework's Router_Route to meet almost all your routing needs. But what if you want something beyond what that package can offer? You can make your routing dreams come true with making your own custom router, all you need to do is implement Zend_Controller_Router_Route_Interface (that's a mouth full).

Case example, I needed a website that could have an arbitrary amount of hierarchal categories. I wanted my URI path to reflect the full path to that category. For example:

http://www.example.org/category/clothing/hats/dress/fedora

This URL would represent the category controller. Each category is a child of the category to the left of it, clothing being the top most parent.

Read More(1 page)...


Adding APR support for Tomcat 6

Wednesday, June 27. 2007

tomcat logoTomcat 6 has some neat new features. The one feature I am eyeballing the most is it's advanced IO features like the Comet Servlet Interface. In an upcoming article I'll be explaining the Comet Servlet Interface some more, Plus a neat proof of concept!

In order to get these advanced IO features, one has to enable APR listener support. APR is Apache's portable runtime that gives developers an API which behavior is consistent across many platforms. This runtime is the magic that makes the latest versions of Apache's httpd so darn portable. It's also needed for some advanced features in Tomcat!

Read More(1 page)...


Posted by Chad Emrys Minick in Linux, Java, Apache, Tomcat at 10:31 PM | Comments (3)