我是新手 CodeIgniter。我有一个table数据显示的地方。每个row都有一个edit button. 单击时edit button,modal popup将弹出一个,然后您可以对其进行编辑。我的问题是,我不知道如何附加我controller背后的链接,image以便我可以row id 将controller. 我将我的图像(编辑)链接到modalpopup..href所以我怎样才能同时执行这两个操作..
这是我在form view. 如您所见,在href标签中,我链接到显示myModal的位置edit form,但我希望它edit form显示在row. 所以我必须将它链接到controller,我不知道该怎么做。
有没有办法将链接附加到图像或有另一种方式?
<a data-toggle="modal" href="#myModal">
<img src="images/32/edit.png" alt="Edit"></a></td>
<div class="modal hide" id="myModal">
//here all the form fields are displaying