This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
pwtan14262
Hi all,
I would to know how i can call a function in my model (seg.php) that can add tables to my widget's htm. Basically the following is where i would like to add my table row in,
In my model:
public function addRow(){
// What do i have to write here to add arrays of item to table row
}
In my htm (located in formwidgets/table/partials/_table.htm):
<table class="table data" data-control="rowlink">
<thead>
<tr>
<th>
<a >
Title
</a>
</th>
</tr>
</thead>
<tbody>
<tr>
//THIS IS WHERE I WANT THE FUNCTION TO ADD THE ROW IN.
</tr>
</tbody>
1-1 of 1