[eluser]wasis[/eluser]
good morning all of you.Please guys help me to fix my link..
this is my controller..
class Studio extends Controller {
function index()
{
$menu['menu1'] = $this->studio_model->tampil_menu();
$menu['submenu1'] = $this->studio_model->tampil_menu();
$this->load->view('sepakbola',$menu);
}
}
this is my model..
class Studio_model extends Model {
...
function tampil_menu(){
$menu1 = $this->db->get_where('menu',array('id_menu'=>1));
$sql_menu1 = $menu1->row();
return $sql_menu1;
$submenu1 = $this->db->get_where('submenu',array('id_menu'=>1),3);
foreach($submenu1 as $sql_submenu1)
{
$output1 = $sql_submenu1->nama_submenu;
}
return output1;
}
}
and this is my link in my view..
<li><a href="index.php?id_submenu=<?=$sql_submenu2['id_submenu']?>">
<?=$submenu2->nama_submenu?></a></li>
i've already modify the script many times but it still error. i need your help immediately please guys, i'm still newbie..
this is for my future of my job..:down: