Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:27:31+00:00 2026-06-13T10:27:31+00:00

I have this code; <?php echo $this->Form->postLink(__(‘Delete’), array(‘action’ => ‘delete’, $homepage[‘Homepage’][‘ContentID’]), array(‘class’=>’btn icon-plus’), __(‘Are

  • 0

I have this code;

<?php echo $this->Form->postLink(__('Delete'), 
            array('action' => 'delete', $homepage['Homepage']['ContentID']),
            array('class'=>'btn icon-plus'),
            __('Are you sure you want to delete # %s?', $homepage['Homepage']['ContentID'])); ?>

Where it displays the text ‘Delete’ I would like to put the trashcan icon from the twitter bootstrap css package. However when I do;

<?php echo $this->Form->postLink(__('<i class="icon-trash"></i>')....

It only displays the html rather than grabbing the icon.

Can anyone explain why its doing this and how I can resolve it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:27:33+00:00Added an answer on June 13, 2026 at 10:27 am

    Add 'escape' => false option to the third param.

    <?php echo $this->Form->postLink(__('Delete'), 
                array('action' => 'delete', $homepage['Homepage']['ContentID']),
                array('class'=>'btn icon-plus', 'escape' => false),
                __('Are you sure you want to delete # %s?', $homepage['Homepage']['ContentID'])); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code : <?php if ($_GET[do]==success) { echo SUCCESS; } ?> <form
I have this code <tbody> <form action=dsf.php method=post> <?PHP if(mysql_num_rows($leerdb) > 0) {while ($rs
I have this code below: <?php function wp_copickpage() { color_option_update(); ?> <form method=POST action=>
hello i have this code in php > <form name =deleteForm > action=CRUD/deleteAct.php >
I have this code in my HTML form: <form action=cart.php method=post> <input type=hidden value=1
Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
I have this code snippet in an email layout: <div> <?php echo $this->Html->image('Layouts/default/Logo.png', array(
I have this code: <div id=gll_select> <script> var caffe = $(#caffe).val(); $(#gll_select).load(<?php echo base_url()
I have applied this code for iframe id. <iframe id='<?php echo 'fraDisabled'.$i.$post->ID; ?>' src='<?php
Say I have this line of code in the view. <?php echo CHtml::activeTextField($model,'start_time'); ?>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.