It looks like you're new here. If you want to get involved, click one of these buttons!
$news = fuel_model('news_items',array ('where'=>"release_date <= '".$today."' and drop_date >= '".$today."'", 'order'=>'priority_order asc, release_date desc'));
.
.
$n = 0;
foreach($news as $item) :
$n++;
.
.
<?=fuel_edit($item)?>
<?=fuel_edit($item->id, 'Edit News Item', 'news_items');?>
.
.
endforeach;
<span class="__fuel_marker__" data-href="http://localhost/fuel/fnps_news/inline_edit/" data-rel="156" title="Edit: " data-module="fnps_news" data-published="1"></span>
<span class="__fuel_marker__" data-href="http://localhost/fuel/news_items/inline_edit/" data-rel="156" title="Edit News Item" data-module="news_items" data-published="1"></span><div class="news_item">
Comments
$module = $id->parent_model(); //$tables = array_flip($id->parent_model()->tables()); //if (isset($tables[$module])) //{ // $module = $tables[$module]; //} //unset($tables);