i have a gallery with gallerific but when change the picture i need
change the ID on my form its possible change the value with the ajax.
<div id="description"></div>
onClick="
<?php echo link_to_remote(array(
'update' => 'description',
'url' => 'retratos/show?id='.$imagen->getId(),
)) ?>
"
retratos the model
show is the action and in the action i have this.
public function executeShow(sfWebRequest $request)
{
$this->form = new MrImagenComentarioForm();
$this->form->setDefault('id_imagen', $this->getParam( 'id'));
$this->setTemplate('show');
}
id_imagen is i hidden in my form.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---