我被困在這段代碼中,請幫助我。有沒有什麼辦法可以在codeigniter的同一頁上獲取數據
<div class="box box-info">
<div class="box-header with-border">
<a href='admin_dashboard.php?option=borrow' class='btn btn-danger'>borrow detail</a>||<a href='dashboard.php?option=lender' class='btn btn-danger'>lender detail</a>
<br/>
<br/>
<?php
$option = isset($_REQUEST['option'])==TRUE?$_REQUEST['option']:"";
// echo $option;
if($option=='borrow')
{
include('borrow_detail.php');
}else{
include('lend_detail.php');
}
?>
如何在笨更改此代碼。
不能清除你的問題PLZ解釋更多.. @惡劣的傑恩 –
http://www.codeigniter.com/user_guide/general/views.html#loading-multiple-views – user4419336