<?php
echo ' '.anchor('javascript:void(0);', '<img src="'.base_url().$this->config->item('FAL_assets_front').'/'.$this->config->item('FAL_images').'/pencil_min.png" alt="echo $this->lang->line(\'lbl_credits\');" />', array('title' => '$this->lang->line(\'lbl_credits\')', 'onclick' => "CLBK_foo('".$id_encrypted."', ".($this->uri->segment(3) != '' ? $this->uri->segment(3) : 0).");return false;" ));
?>
hello, i need to write in the title value of array, but i can't find the error. maybe is also incorrect the alt?
can you help me?
Looking at the title aspect of your function, it appears as though you're using single quotes around a PHP variable. Just removing them should do the trick.
e.g. change this
'title' => '$this->lang->line(\'lbl_credits\')'
to this
'title' => $this->lang->line('lbl_credits')
I won't claim the rest of the code will work, but this will solve one problem at least!