Subscribe to our feed

Symfony Experts

Symfony Experts
If you have an urgent question for a symfony-related issue, this is the place to ask.


Stack Overflow

The old fashioned way


  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 by in  Web Development   |     |  7 Comments »

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 by in  Web Development   |  Comments Off on svn: can’t commit — working copy is missing or not locked