We help IT Professionals succeed at work.
Get Started

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

Eduardo Fuerte
Last Modified: 2015-12-01
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!
Watch Question
Most Valuable Expert 2017
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE