[eluser]Mainboard[/eluser]
hey everyone, i have some problem with a little redirection, i try to create a little intranet with codeigniter and i call my principal menu of one database, the problem is when i saw the links of my principal menu this links redirect to my controller, this is
My View
Code:
<?php foreach($menu_enc as $menue): ?>
<? echo '<a class="current">link.' target='.$menue->destino.'>'.$menue->nombre_enc.'</a>';?>
<?php endforeach; ?>
My Controller
Code:
function members_area() {
$this->load->model('menu_det_model');
$this->load->model('menu_enc_model');
$results_det = $this->menu_det_model->call_menu_det();
$results_enc = $this->menu_enc_model->call_menu_enc();
$data['menu'] = $results_det['rows'];
$data['menu_enc'] = $results_enc['rows_enc'];
//$data['main'] = $results_enc['rows_enc']
//$data['num_results'] = $results['num_rows'];
$this->load->view('index2', $data);
}
my menu works perfect but the links redirect to my control and i need to redirect to the others views, the idea is to change my iframe or main to my website when a click to some button of my menu.