Except the ajax helper is deprecated....

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 31 Oct 2012, at 21:17:31, Chris <[email protected]> wrote:

> THANKS Chetan,... you are the MAN ! 
> it works,... 
> 
> On Wednesday, October 31, 2012 11:07:05 AM UTC-7, chetan varshney wrote:
> Why are you php tag inside php tag??
> 
> use it as-
> 
> <?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 
> 'friends', 'action' => 'accept', $friend['FriendRequest']['id']), 
> array('update' => "friend_".$friend['FriendRequest']['id']));?>
> 
> On Wed, Oct 31, 2012 at 11:11 PM, Chris <[email protected]> wrote:
> 
> hi guys,... I'm having a problem placing unique ID in a ajax link 'update': 
> 
> 'update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>' 
> 
> here is the link: 
> 
> <?php echo $ajax->link(ucfirst(__('accept', true)), array('controller' => 
> 'friends', 'action' => 'accept', $friend['FriendRequest']['id']), 
> array('update' => 'friend_<?php echo $friend['FriendRequest']['id'] ?>')
> ); 
> ?>
> 
> 
> 
> 
> I'm getting an error no matter what I do by placing in echo '(',  ')' , <?php 
> echo ($friend['FriendRequest']['id']) ?>    ....
> Parse error: syntax error, unexpected T_STRING, expecting ')' in 
> /home/xachkaa/hamayk.com/html/app/views/friends/requests.ctp on line 83
> 
> can anyone help please,...? 
> 
> thanks in advance 
> chris
> 
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  
> 
> 
> 
> -- 
> Chetan Varshney
> Ektanjali Softwares Pvt Ltd
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>  
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to