From: Jacqueline Tito <jacquelinetit...@gmail.com>
Date: Tue, 17 Apr 2012 19:36:15 -0700 (PDT)
Local: Tues, Apr 17 2012 10:36 pm
Subject: Authorized delete process to logged in user.
I have this function in my controller,
public function process() {
$action = $this->request->data['Ticket']['action'];
}
and in the index.ctp
<?php foreach ($tickets as $ticket): ?>
<tr class="alternate-row">
>checkbox('Ticket.' . $ticket['Ticket']['id'] . '.id'); ?></td>
<td><?php echo
$ticket['Ticket']['id']; ?></td> <td><?php echo $ticket['Ticket']['title']; ?></td> <td><?php echo $ticket['Ticket']['description']; ?></td> <td><?php echo $ticket['Ticket']['requestor_name']; ?></td> <td><?php echo $ticket['Ticket']['email']; ?></td> <td><?php echo $ticket['Ticket']['phone']; ?></td> <td><?php echo $ticket['Ticket']['status']; ?></td> <td><?php echo $ticket['Ticket']['remarks']; ?></td> <td> <?php echo $this->Html- >link('', '/ticket/ticket/edit/' . $ticket['Ticket']['id'],
array('class' => 'icon-1 info-tooltip')); ?>
<?php echo $this->Form- >postLink('', array(
'action' => 'delete',
$ticket['Ticket']['id']), array( 'class' => 'icon-2 info-tooltip', 'confirm' => 'Are you sure you want to delete?')); ?> </td> </tr> <?php endforeach; ?> .... Function process allows multiple delete through the selected
Now, my problem is, how to authorized multiple delete into the current
Sample:
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||