Posting Defaults for Checkboxes

I was playing around with Zend_Form a little while ago and I realized they did something neat with checkboxes. Everytime I created a checkbox, Zend made two. <input id=”optInDefault” name=”optIn” type=”hidden” value=”n” /> <input id=”optIn” name=”optIn” type=”checkbox” value=”y” /> One hidden, and one not.  This is handy because when the user doesn’t check it – […]

Zend Framework, Rewrite Rules, Apache

Most of the Zend Framework documentation I’ve read recommends a rewrite rule that looks something like this: RewriteEngine on RewriteRule !\.(swf|js|ico|gif|jpg|png|css)$ index.php Why not use a more elegant rule that looks like this: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php This rule basically says: If it’s not an existing file, and it’s not […]