panchogg
unread,Sep 18, 2010, 1:47:21 AM9/18/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sfJqueryReloadedPlugin
hey people... i need help....
i am using:
<?php echo jq_link_to_remote('Eliminar', array(
'url' => url_for('items_delete',$itemMedico),
'method' => 'get',
'script' => 'true',
'csrf' => '1',
'confirm' => '¿Estás seguro de borrar?',
'loading' => "$('#borrando_".$i."').show()",
'complete' => "recargarLista()",
)) ?>
with this action:
public function executeDeleteItem(sfWebRequest $request)
{
//TODO: Activar CSRFProtection cuando sepa como pegarselo al
delete AJAX
$request->checkCSRFProtection();
$this->forward404Unless($item = Doctrine::getTable('Item')-
>find(array($request->getParameter('id'))), sprintf('Objeto ítem no
existe (%s).', $request->getParameter('id')));
$item->delete();
return $this->renderText('');
}
AND... a get this error sometimes...
_csrf_token [CSRF attack detected.]