-1

I try to show image that have link but i received error like this is anyone know and can help me .. thanks

Here's my code

<div id="profil">
'.tabel_budgetcenter().'    
</div>
<div id="pengeluaran_pp">
'.tabel_pengeluaranpp().'   
</div>
<div id="cuti">
'.l(theme('image', array(
    'path' => 'misc/images/print_24.png',
    'alt' => 'to pdf',
    'title' => 'to pdf'), "print/lpr_budget/coa_all_pdf/".$thn."/".$coacode, array("attributes"=>array('target'=>'_blank'),'html'=>TRUE))).'
'.l(theme('image', array(
    'path' => 'misc/images/excel.png',
    'alt' => 'to excel',
    'title' => 'to excel'), "print/lpr_budget/coa_all_xls/".$thn."/".$coacode, array("attributes"=>array('target'=>'_blank'),'html'=>TRUE))).'

'.tabel_budgetcenter2().'
</div>

</div>';
return $output;
}

closed as off-topic by kiamlaluno Apr 20 '17 at 9:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question was caused by a problem that can no longer be reproduced, was solved by a cache clear, or was a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers." – kiamlaluno
If this question can be reworded to fit the rules in the help center, please edit the question.

1

This:

theme('image', array(
  'path' => 'misc/images/print_24.png',
  'alt' => 'to pdf',
  'title' => 'to pdf')

Should be this:

theme('image', array(
  'path' => 'misc/images/print_24.png',
  'alt' => 'to pdf',
  'title' => 'to pdf'))

You missed the closing parenthesis in both this, and the next link as well.

So that means you need to change this:

l(theme('image', array(
  'path' => 'misc/images/print_24.png',
  'alt' => 'to pdf',
  'title' => 'to pdf'), "print/lpr_budget/coa_all_pdf/".$thn."/".$coacode, array("attributes"=>array('target'=>'_blank'),'html'=>TRUE)))

To this:

l(theme('image', array(
  'path' => 'misc/images/print_24.png',
  'alt' => 'to pdf',
  'title' => 'to pdf')), "print/lpr_budget/coa_all_pdf/".$thn."/".$coacode, array("attributes"=>array('target'=>'_blank'),'html'=>TRUE))

In order to correct the misplaced closing parenthesis that you put at the end of l(), instead of at the end of theme().

Not the answer you're looking for? Browse other questions tagged or ask your own question.