Hi all!

This is a label i'm making with jq_link_to_remote function:

$label = "Lesionado
$index".jq_link_to_remote(image_tag('/sf/sf_admin/images/delete'), array(
        'url'     =>  'siniestro/deleteItem?cedula_id=' .
$lesionado->getCedulaId() . '&nro_siniestr=' .
$this->getObject()->getNroSiniestro(),
        'success' =>
"jQuery('.sf_admin_form_field_lesionado_$index').remove();",
        'confirm' => 'Está seguro de eliminar a ' . $lesionado->getPNombre()
. '?',
      ));

the first problem is that in the source code the url is this one
"siniestro/deleteItem?cedula_id=2&nro_siniestr=3", as you can see the
ampersand is translated to the HTML format, i don't want that, how can i fix
it? if i use \& then i get the HTML code of '\' and than '&' i also
tried with simple and double quotes, with no difference =S ...


The next problem is that if i use the right PK's name of Siniestro class
(nro_siniestro), i mean this line:
       ...
        'url'     =>  'siniestro/deleteItem?cedula_id=' .
$lesionado->getCedulaId() . '&nro_siniestro=' .
$this->getObject()->getNroSiniestro(),
       ...
                                         ^^^^^^^^^^^^^^^

instead of this one:
       ...
        'url'     =>  'siniestro/deleteItem?cedula_id=' .
$lesionado->getCedulaId() . '&nro_siniestr=' .
$this->getObject()->getNroSiniestro(),
       ...
                                         ^^^^^^^^^^^^^^

then the generated url is: "siniestro/deleteItem?cedula_id=2" ... i really
don't know why PHP or symfony decides to remove that attribute, it is
because is the PK or something like that? =S

a little help here please, thanks
-- 
Have a nice day.
Abraham Montilla.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to