Dear all friend please help me.
I have one controller name: ExpenseController.php
I have two models name: ZfiExpenseDetail.php and ZfiExpenseHeader.php
and one page name: create.php
I write all code in create.php. My purpose want insert all item on table to database on model ZfiExpenseDetail.php
<table class="table table-striped table-hover" id="list">
<thead>
<tr bgcolor="#CCCCCC">
<td>Item</td>
<td>Date</td>
<td>Expense Catg</td>
<td>Description</td>
<td>Receipt Amount</td>
<td>Currency</td>
<td>Exchange Rate</td>
<td>Amount</td>
<td width="100px">Action</td>
</tr>
</thead>
<tbody class="auto">
<tr>
<td>0001</td>
<td>01-08-2014</td>
<td>food</td>
<td>Test</td>
<td>100</td>
<td>10</td>
<td>100</td>
<td class="dynbox1">10000</td>
</tr>
<tr>
<td>0003</td>
<td>01-08-2014</td>
<td>food</td>
<td>Desc</td>
<td>50</td>
<td>100</td>
<td>100</td>
<td class="dynbox1">5000</td>
</tr>
<tr>
<td>0005</td>
<td>01-08-2014</td>
<td>food</td>
<td>Desc</td>
<td>25</td>
<td>10</td>
<td>100</td>
<td class="dynbox1">5000</td>
</tr>
</tbody>
</table>
Please help me show code details or example. Very thank.
How to insert?