echo $html->link(
'<span class="icon_delete">Activate</span>',
'/order/activate/'.$order['List']['id'],
array(
'class' => 'button2'
),
sprintf(__('Are you sure you want to activate this order ?', true),
$order['List']['id']),
false
);
The last param tells Cake not to escape the title. But I think this
would be simpler if you added the "icon_delete" class to the link
itself.
Also, you should consider using the array notation for your routes. If
you have a lot of routes, it's *so* much better in the long run.
On Wed, Jan 28, 2009 at 9:20 PM, Louie Miranda <[email protected]> wrote:
> Hello,
>
> I have this code:
> echo '<a href="#" class="button2"><span
> class="icon_delete">Activate</span></a>';
>
> That displays a css class on <a> and after that a <span> with another class.
>
> When I am using CakePHP, I can only use this.
> echo $html->link("activate", '/order/activate/'.$order['List']['id'], null,
> sprintf(__('Are you sure you want to activate this order ?', true),
> $order['List']['id']));
>
> Is there any work around where I could make it work on my first example
> above? By using cakeish methods?
> --
> Louie Miranda ([email protected])
> http://www.louiemiranda.net
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---