Archive for October, 2009
What is that CSRF thing? CSRF, or Cross-site request forgery, is a form of attack that takes advantage on the trust that a web application has on the user’s browser. If a different site than yours makes a user do a request to your site, since the user has a cookie session for your site, if [ READ MORE ]
Los formularios embedded de symfony 1.2 son una herramienta muy útil, pero ¿cómo agregarlos dinámicamente desde la vista con AJAX? Supongamos una aplicación simple. Se trata de tarjetas con una pregunta y su respuesta. Podemos querer poner una imagen como pista, empotrando un formulario PictureForm: class CardForm extends BaseCardForm { public function configure() { [ READ MORE ]
Embedded forms in symfony are a very useful tool, but ¿how to add them dynamically from the view using AJAX? Simple form Let’s take a simple applicaton. There will be flashcards with a question and its answer. The form for creating these cards could be this: With an embedded form We may want to offer an image as a [ READ MORE ]
Heisenberg uncertainty principle in e-mail campaigns analytics We have been experiencing something quite paradoxical with our e-mail campaigns and Google Analytics. To track an e-mail campagin with GA you need to append some long parameters to the URLs, like http://es.makoondi.com/ofertas_habitacion/new?utm_campaign=newoffer&utm_medium=email&utm_source=pcom for the base URL: http://es.makoondi.com/ofertas_habitacion/new And, yes, we could track this campaign. But we noticed that our campaign was less [ READ MORE ]
When $form->bind() throws this error: This form is multipart, which means you need to supply a files array as the bind() method second argument. It means that at least one field in the form is multipart. That means that the form contains files. That’s why bind needs a second argument, usually with the form $request->getFiles($form->getName()); $this->form->bind($request->getParameter($this->form->getName()), $request->getFiles($this->form->getName())); In a [ READ MORE ]
Cuando al hacer un $form->bind() nos da el siguiente error This form is multipart, which means you need to supply a files array as the bind() method second argument. Significa que alguno de los campos del formulario es multipart. Es decir, que el formulario contiene campos de fichero. Por eso bind necesita un segundo argumento, que suele [ READ MORE ]