logo

Excellent CSS Sprite website

logo

With most of our web development we use CSS sprites (see previous post about it).

I just wanted to share this excellent generator with you all for it :)

http://css-sprit.es/

Share with your friends and help out this site:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogosphere News
  • E-mail this story to a friend!
  • Identi.ca
  • LinkedIn
  • Live
  • MisterWong
  • MySpace
  • Ping.fm
  • Reddit
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

Getting Select boxes to show value rather than the id in CakePHP

logo

Been struggling with something lately – and that is to get the select boxes on the edit / add views of a cakePHP app to show the correct thing.

For instance I have a Countries table that has an association to the UserAddress model, to get this association and pull out the country name rather than the coutnry_id I have to do the following:

$countries = $this->UserAddress->Country->find('list', array('fields' => array('Country.country')));

Sometimes CakePHP automagic takes away a bit of common sense from us :)

Share with your friends and help out this site:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogosphere News
  • E-mail this story to a friend!
  • Identi.ca
  • LinkedIn
  • Live
  • MisterWong
  • MySpace
  • Ping.fm
  • Reddit
  • RSS
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Tumblr
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

logo
Powered by Nu Order Webs