Skip to main content

Posts

Adding A Trailing Slash To A Zend Framework URL

 "We need all our URL's to have a trailing slash", was a request I had in recently. This sounds easy enough, a quick rewrite rule will do the trick, and that is what I added. RewriteRule ^(.*[^/])$ /$1/ [R=301,L] I look at the start of the URL, grab every character to the end of the URL, making sure the last one isn't a slash already, then rewrite that with slashes around it, issuing a 301 redirect and informing Apache not to process any more rules. This works great for pages already on the server, for example /guestbook becomes /guestbook/ . However, what if we wanted to load /logo.gif , this would rewrite to /logo.gif/ and cause a error. OK, so we need not to match every character in the URL, but only if it doesn't have a dot in there. The site in question was a Zend Framework application, and this caused it's own problems. Zend Framework applications have their own rewriting rules... RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQU...

10 Best Free Scrum Tools

The best tools for managing Scrum are note cards, whiteboards and big visible charts. Once you get it right using the white board, often stake holders of the projects would like to see the burn down charts online. Not only that, the Scrum Team also would like to have some kind of tools to manage their tasks, generate reports on unassigned tasks etc. There are many online tools that lets you manage a project using the Scrum methodology. If you are managing a Scrum for the first time, then we recommend you to stay with note cards, whiteboards and charts as the tools for managing until you have become familiar with the entire Scrum framework. When you are familiar with it, its fruitful to try your hands on some software tools that let you manage Scrum efficiently while you deliver. There are many commercial tools available. But, here is the list of free tools that are used for Agile/Scrum project management. 1. Agile Tracking Tool Agile Tracking Tool is a free open source tool that he...

HTML5 forms in Zend Framework

Since W3C published its HTML5 specs in January 2008 many browsers have started their implementation of the improved XML structure and its new attributes. But what does this mean and how can we as developers benefit from all this on a form level? This talk is about implementing HTML5 specific tags in your forms created with Zend_Form. New features HTML5 for forms and validation First of all to clarify the meaning of all these new goodies, we first look at what’s available. HTML4 had a few different input elements that could be added to your form : text, password, hidden, checkboxes etc. HTML5 brings even more types that can be added to your tag. For instance: email url number range Date pickers (date, month, week, time, datetime, datetime-local) search color The email attribute to start with isn’t much of a help in a basic browser that runs on your pc/laptop. It is handy though on a mobile platform as the keyboard changes to a type where the @ sign is not tu...