Archive for the ‘ symfony ’ Category
It is usual to have tasks that load a lot of objects from the database and do something with them. It can be generating a sitemap, generating thumbnails, etc. When you do that, it is very likely that you find memory exhaustion problems like: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 [ READ MORE ]
Esta semana he estado en las jornadas de symfony en la Universitat Jaume I de Castellón, que tuvieron la amabilidad de invitarme como ponente.Tenéis una crónica muy completa de Javier Eguiluz en symfony.es. Fue un éxito de asistencia, participación y organización. David Castelló merece mención especial por lo mucho que se lo curró. Dejo aquí [ READ MORE ]
Sometimes I want to create new symfony projects to try something, or, well, sometimes even to do some actual work. Then, I go to the Jobeet tutorial and follow the first steps. After that, since I use git, I check out this post to setup symfony as a submodule. I have written a simple bash script with [ READ MORE ]
I have just released a pet project I have been developing lately. It is called List & check, and it is about making (beautiful) lists easily. What it is about I use lists for almost everything: things I want t o try, things I want to do this week, books to read, movies to watch, places to [ READ MORE ]
Lately, I wanted to do a website for a non profit association in which I am involved. Since I really like symfony, I decided to do it using one of the CMS that extend symfony. Looks like there are three main choices: Apostrophe, Diem and Sympal. I tried first Apostrophe, because I liked a lot the [ READ MORE ]
Very often, we want javascript files to be loaded after another. For instance, you may your files containing jquery functions to be loaded after the main jquery.js file to avoid the typical error: $ is not defined use_javascript (and addJavascript) accepts a ‘position’ parameter to deal with this. Position can be ‘first’ or ‘last’. For instance: <?php use_javascript('file-you-want-to-load-at-the-end.js', [ READ MORE ]
Some time ago we decided in Makoondi that would be better to have one of these jquery calendars where the user picks the date: The first version was easy to implement with sfFormExtraPlugin , that implements sfWidgetFormJQueryDate. $this->setWidget('available_from', new sfWidgetFormJQueryDate(array( [ READ MORE ]
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 ]