select
Changing selected option in a SELECT

In Symfony, nothing is as easy as it might seem. So I ran into the problem to change which element of an autogenerated SELECT is selected. jQuery came in handy to accomplish that.
In this case, my SELECT looks like:
<select id=”mySelect”><option value=”0″>please choose</option><option value=”1″ selected>some option</option><option value=”2″>some other option</option><option value=”3″>you get it</option></select>
Now, I want to have [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 4th November 2009No Comments
Doctrine Queries

To create custom SQL queries in Symfony, one has to use Doctrine (no, I don’t go on a rant here why I don’t want to use Propel ^^) and its DQL (Doctrine Query Language). This can be a serious pain in the arse so let’s put up some quick examples:
$query = new Doctrine_Query();
Ok, now we [...]

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks
Read More
Posted on 4th November 2009No Comments