Entries by jzarate
I hope the title is self-explanatory … Several times, in a symfony project or a project which runs with the help of the prototype library, some problems arise regarding the scope of certain javascripts variables declared inside ajax request (that can be theyselves declared within other ajax request). Usually , you need to access certain javascript varible [...]
dWhen executing this code: $this->items = $object->getItens(); ... foreach($this->items as $item) { ...yadda yadda $item->getId() yadda yadada } within a symfony action, the php engine throws: Notice: Indirect modification of overloaded property xxxActions::$items has no effect in xxxactions.class.php That’s related to a php bug , whose implications in symfony are described here. It looks like it’s related to php 5.2. I can see it [...]
I was looking for some actions sharing methods weird solution (since I was trying to apply a per-action classes model, and I needed to use methods from one action onto another), and I had no luck at all. However, what I did find out was fabien saying repeteadly that actions code should not be messy, hard [...]
Las cabeceras X-JSON salen de un modo misterioso en la documentacion de Prototype, e incluso en la de symfony. Pues bien, tiene utilidad, vienen muy bien para enviar datos desde la operacion ajax hecha en el servidor hasta la funcion javascript que se suele ejecutar en el status ‘complete’ Pero pasemos a un ejemplo:
Es posible combinar los dos métodos de validación del symfony, de modo que se pueda usar el fichero yml para las validaciones más comunes, y el método validateXXX() para alguna validación más especial Para el caso – por ejemplo – donde uno o varios de los campos de un formulario requira una validación compleja, mientras [...]
Cuando escribimos con el symfony un form_remote_tag(), si luego pretendemos, a traves de javascript, realizar acciones cuando el evento ’submit’ del formulario ocurra, tendremos que andarmos con mucho ojo. Cuando en symfony escribimos: echo form_remote_tag(array( 'update'=>'formulario', 'url'=>'forms/microMasInfo', 'script'=>'true')); el symfony genera: <form onsubmit="new Ajax.Updater('formulario', [...]
Sobre el flash y los links internos. Parece ser que, motivo de una medida de seguridad, el objeto flash tiene la siguiente ‘limitacion’ o restriccion: cuando el servidor donde está alojado el archivo flash (el definido en el parámetro “movie”) no coincide con el servidor donde está alojado el codigo html que realiza la llamada al flash (el [...]
Let me introduce a new category of “quick&dirty” tricks to apply when “quick&dirty” things happen in symfony (yes, they happen). After a new pear upgrade, a new “bug” may appear concerning sfPropelADministrator. something similar to this may show up: Notice: Undefined offset: 1 in /usr/share/php/symfony/config/sfGeneratorConfigHandler.class.php on line 69 and … [sfParseException] You must specify a “moduleName” This is related to [...]
Recent Comments