troubleshooting Question

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

Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil asked on
PHPMySQL ServerjQuery
3 Comments1 Solution214 ViewsLast Modified:
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'>";
             
                	if(empty($resultadoIcaEncerrados)){
                		echo 'No momento, não encontram-se cadastrados editais PPAIS. ';
                	}else{
                		$table = array (
					                    'table_open'          => '<table class="table table-hover" name="procurarnoticia" id="procurarnoticia">',
					                    'table_close'         => '</table>'
              							);
					$this->table->set_template($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>";
                ?>
                
        </div>
    </div>

</div>
</div>

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!
ASKER CERTIFIED SOLUTION
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 3 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 3 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004