Archive for November, 2007

Follow up to CakePHP Post

Tuesday, November 27th, 2007

Some things I’ve learned about cakephp:
1. To attach javascript to a submit button the HTML way:

<input type="submit" id="send_button" onclick="disableMe('send_button')" value="Register" />

The Cake way:

submit('Register',array('id'=>'send_button', 'onclick'=>"disableMe('send_button')")); ?>

2. Complete list of HTML helpers

Symbolic Links in Unix

Tuesday, November 27th, 2007

I always have to look this up

ln -s /long/directory/path/to/make/shorter mypath

Outlook 2007 HTML email rendering

Tuesday, November 6th, 2007

I worked on a project today to fix 2 HTML emails that were broken in Outlook 2007. What I did to fix them was:
1. Make all CSS internal (in the head)
2. Make the layout table-based with only one level embedded at the most
3. Make all backgrounds be rendered by CSS
4. Make the page validate using Tidy (the FF extension)