But i want the image to appear instead of link...any ideas?
2009/5/11 arif hossen <[email protected]>
> I think it is good solution for your error correction .Please follow this
> code:
>
> <?php echo $html->link(__('Delete', true), array('action'=>'delete',
> $user['User']['id']), null, sprintf(__('Are you sure you want to delete #
> %s?', true), $user['User']['id'])); ?>
>
>
> On Mon, May 11, 2009 at 3:37 AM, paulos nikolo
> <[email protected]>wrote:
>
>> Ty you help me in most important part...After your solution there was an
>> error and i found it.the complete is:
>> <?php echo
>> $html->link($html->image("delete.png",array("alt"=>"Delete","title"=>"Delete")),$html->url(array("controller"=>"users","action"=>"delete",$user['User']['id'])),array(),"Are
>> you sure to delete user?",false);?>
>>
>> Ty again m8!
>>
>> 2009/5/10 Kyle Decot <[email protected]>
>>
>>
>>> Try this:
>>>
>>> echo $html->link($html->image("delete.png",array
>>> ("alt"=>"Delete","title"=>"Delete")),$html->url(array
>>> ("controller"=>"users","action"=>"delete")),array(),"Are you sure to
>>> delete user?",false);
>>>
>>>
>>> On May 10, 2:09 pm, paulos nikolo <[email protected]> wrote:
>>> > I tried to use html->link as you said but i can't make it work.I wonder
>>> what
>>> > is the solution.
>>> >
>>> > 2009/5/10 Enrique <[email protected]>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > The "url" array is only that: an URL array, i.e. there is no
>>> "confirm"
>>> > > parameter here.
>>> > > What I would do is putting the image in a $html->link() and use it's
>>> > > "confirm" parameter and disable the HTML escape (to output the image
>>> > > tag correctly). Maybe there is another way, looking at the cake HTML
>>> > > helper source code often helps (how the parameters are passed
>>> > > through) ;-)
>>> >
>>> > > On 10 Mai, 14:13, Paulos23 <[email protected]> wrote:
>>> > > > Hi peeps,
>>> > > > Well i am creating some nice crud functionality and i use some
>>> > > > images.All working perfect but i have problem with the delete
>>> action
>>> > > > coz i want a confirm message to appear when user tries to
>>> delete.What
>>> > > > am i doing wrong?Here is my example code:
>>> >
>>> > > > <?php echo $html->image("delete.png", array("alt" =>
>>> > > > "Delete","title"=>"Delete",'url' => array('controller' => 'users',
>>> > > > 'action' => 'delete',$user['User']['id'],array(),"Are you sure to
>>> > > > delete user?" )));?>
>>> >
>>> > > > The action works fine but no message displayed!
>>> >
>>> > > > Any help would be nice.
>>> > > > Ty in advance!
>>>
>>>
>>
>>
>> --
>> Regards,
>> Mohammad Arif Hossen
>> Junior Web Developer
>> United Group International(UGIBD)
>> Mobile: +88 01714355911
>>
>> >>
>>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---