Thank you Brian thats what i was looking for
On Oct 9, 9:04 am, brian <[email protected]> wrote:
> On Fri, Oct 9, 2009 at 11:19 AM, Simon <[email protected]> wrote:
>
> > if that code gose to controller then this should go to view but the
> > other users will see this link
> > <?php echo $html->link(__('Delete', true), array('action'=>'delete',
> > $comment['Comment']['id']), null, sprintf(__('Are you sure you want to
> > delete # %s?', true), $comment['Comment']['id'])); ?>
>
> if ($comment['Comment']['user_id'] == $session->read('Auth.User.id'))
> {
> echo $html->link(__('Delete', true), array('action'=>'delete',
> $comment['Comment']['id']), null, sprintf(__('Are you sure you want to
> delete # %s?', true), $comment['Comment']['id']));
>
>
>
> }- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---