【发布时间】:2023-03-21 03:51:01
【问题描述】:
我有下面的代码来生成表格
$query = $this->search_employee->getAll($config['per_page'], $this->uri->segment(3));
$this->table->set_heading('Name', 'Department');
$tmp = array ( 'table_open' => '<table border="0" cellpadding="2" cellspacing="1" width="70%">' );
$this->table->set_template($tmp);
$data['main_content'] = 'display_professors';
$data['table'] = $this->table->generate($query);
我的问题是如何在 Name 列下的每一行下创建一个链接,链接到 view_employee/ID
我正在使用 codeigniter 的 table class。
【问题讨论】:
标签: php codeigniter html-table