【发布时间】:2016-02-24 16:02:16
【问题描述】:
如何将值作为点燃数据表中的链接?如何让它变得简单?
控制器
function index()
{
$tmpl = array ( 'table_open' => '<table id="big_table" border="1" cellpadding="2" cellspacing="1" class="mytable">' );
$this->table->set_template($tmpl);
$this->table->set_heading('First Name','Last Name','Email');
$this->load->view('subscriber_view');
}
function datatable()
{
$this->datatables
->select("mro_id,mro_name,mctg_name,mctg_id")
->from('jil_mroproducts')
->join('jil_mrocategory', 'jil_mroproducts.mro_category=jil_mrocategory.mctg_id', 'INNER')
->unset_column('mro_id');
echo $this->datatables->generate();
}
【问题讨论】:
-
请不要在您的帖子中添加紧急、尽快、截止日期或类似请求。与互联网上所有其他志愿者驱动的论坛一样,这里的问题具有同等优先级。
-
好的,我会仔细提问。非常感谢您的建议