This site may harm your computer???

January 31st, 2009 by Carlos Barros

Today (actually a few minutes ago), I was googling about some random subjects, when I clicked on a link and got that well known Google anti-phishing page alerting me that the website I was about to view could harm my computer. Well, nothing wrong here so far, BUT…. I went back to Google results I noticed that ALL results was marked as harmful. That was weird, so to be sure, I started a new search for the word Google, and guess what?? I got the same warnings, even for Google pages. This is clearly some guy doing something really wrong at Google.  A few minutes (less than 4 minutes) later, the problem was solved, but I had a chance to take some screenshots :) .. Well, this is an really off-topic and useless post, but this was, at least, funny to witness this!

Using embedFormForEach in Symfony, Part II

January 1st, 2009 by Carlos Barros

In my last post I talked about embedFormForEach method, that will embed a form inside another N times, and in the end of that article, I promised a new post on this subject to show how to use it to dynamically add/remove/sort cars, and here it is. As usual, I put live an example here (I integrated this new form on the old city picker form). In this example, when you create (or edit) an user, you will see a new control called Cars, and a green plus icon. If you click that icon, it will add a new “car form” into the user form. You can add as many cars as you want. Each new form has a set of controls that can be used to sort and remove cars from the form. Let’s take a look on how it all works.

Read the rest of this entry »