How to link a href when using CodeIgniter's $this->table->add_row ?

Hi Experts!

Could you point how to link a href  in this structure by using CodeIgniter?

<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
	           echo "<div class='form-group-ppais'>	
			<div class='tabela_ppais'>";
                		echo 'No momento, não encontram-se cadastrados editais PPAIS. ';
                		$table = array (
					                    'table_open'          => '<table class="table table-hover" name="procurarnoticia" id="procurarnoticia">',
					                    'table_close'         => '</table>'
                    $this->table->set_heading('Chamada', 'Org&atilde;o','Abertura', 'Fechamento');
                    foreach($resultadoIcaEncerrados as $linha){
                        $this->table->add_row($linha->nome_orgao, $linha->nome_programa, $linha->dt_abertura, $linha->dt_fechamento);
					 echo $this->table->generate();
					//echo "<br/><a class='btn btn-primary'  href='";echo base_url("acesso_usuarios/procurarAcessosPorData");echo "'>Voltar</a>";


Open in new window

What I need is that  the column represented by:

 $linha->nome programa

have this link:

           echo "<a  href='";
              echo base_url("arquivos/ica/chamadas/".$pasta."/$edital")."'";;
              echo ' target="_blank"';
              echo ">";echo($resultadoIca->nome_orgao);

Open in new window

Thanks in advance!
Eduardo FuerteDeveloper and AnalystAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Just put the code in a variable and then use that in the add row call
$cell = "<a  href='";
$cell .= base_url("arquivos/ica/chamadas/".$pasta."/$edital")."'";
$cell .= ' target="_blank"';
$cell .= ">";
$cell .= $resultadoIca->nome_orgao;

$this->table->add_row($linha->nome_orgao, $cell, $linha->dt_abertura, $linha->dt_fechamento);

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eduardo FuerteDeveloper and AnalystAuthor Commented:

Thank you very much!

If possible, could you give a look at ?
Julian HansenCommented:
You are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.