SUBSCRIBE VIA RSS


Subscribe to our feed

Status Updates

  • First iPhone app nearly complete! I've been waiting for 3 weeks for Apple to finish "conducting company identity verification."
    2 days ago
  • Rainy day! Staying indoors. Creating computerized players in a simulation game that models cooperation in the work place.
    74 days ago
  • Up at 8AM, with a hot cup of coffee brought back from Cafe Lola in Ann Arbor. Will I succeed in putting in 8 billable hours in one day?
    99 days ago
  • full scale irish band outside my window playing the pipes for the past 20 minutes. pretty fun.
    108 days ago
  • listening to Kristin on Maxim Radio!
    114 days ago
  • back from an amazing meal at ouest with even more amazing company.
    115 days ago
  • wondering how so many online tshirt companies stay in business--ones that sell shirts with funny messages, i never see them in real life
    121 days ago

Topics

TWITTER

The old fashioned way

RECENT TUNES

  Archive for November, 2007

November 16, 2007 – 4:57pm Sending Email within Symfony

Symfony allows you to dish off the responsibility of sending an email to another module/action when necessary, which can be great because it can utilize the “view” aspect of the framework so you can store your email formatting (plain text or HTML) as a template just like you would for a regular action.

As I don’t use this functionality that often, I usually forget how to pass parameters over to this other mail action, such as the id of the object I am working with or the recipient’s email address.

Sending Email with a Custom Action
In this example we’ll be sending an lease application notice to the manager of a property. After the application is saved, we want to send an email to the property manager containing the property name and applicant name, and include a link for them to login and view the complete application.

In our “save” action of the “leaseApp” module, right after the application is saved we’ll send off the email, and we can do this (as outlined in the symfony cookbook) by delegating to another action. More…

Posted in  Web Development   |     |  6 Comments »   |  delicious  Digg

November 12, 2007 – 11:08pm svn: can’t commit — working copy is missing or not locked

If you accidentally remove a directory from your version-controlled project and try to commit, you will probably get an error similar to this. To fix it, try and remember *not* to remove or move any version-controlled file from the filesystem directly, but rather use the “svn mv” or “svn rm” commands.

To fix it, do an “svn update” in the removed directory’s enclosing directory to restore it, then do a nice “svn rm” on the folder you had originally removed. Finally, do an “svn ci” to save your changes.

Posted in  Web Development   |  No Comments »   |  delicious  Digg