如何从视图向控制器中的功能发送信息 [英] How I Can Send Information To A Function In Controller From View
本文介绍了如何从视图向控制器中的功能发送信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我的问题是:
如何将信息发送到控制器中的某个功能从视图???
看看这个:
hi
my question is :
how i can send information to a function in controller from view???
look at this :
<html>
<head>
<title>Show Links</title>
</head>
<body>
<ul>
<?php foreach ($query as $key): ?>
<li><?php echo $key->file_name?>
<a href="<?php echo base_url('index.php/upload/del'); ?>">Delete</a><br /></li>
<?php endforeach; ?>
</ul>
<br />
<hr />
<a href="<?php echo base_url('index.php/upload/show_links'); ?>">refresh</a>
</body>
</html>
i需要将$ key-> file_name发送到控制器中的一个函数进行删除
i不知道我怎么做:(
i need send $key->file_name to one function in controller for delete
i don't know how i can :(
推荐答案
查询 as
key):?>
< li > ; <? php echo
key): ?> <li><?php echo
key-> file_name ?>
< a href = <?php echo base_url('index.php / upload / del'); ?> > 删除< / a > < br / > < span class =code-keyword>< / li >
<? php endforeach; ?>
< / ul >
< br / >
< hr / >
< a href = < ?php echo base_url('index.php / upload / show_links'); ?> > 刷新< / a >
< / body >
< / html >
key->file_name?> <a href="<?php echo base_url('index.php/upload/del'); ?>">Delete</a><br /></li> <?php endforeach; ?> </ul> <br /> <hr /> <a href="<?php echo base_url('index.php/upload/show_links'); ?>">refresh</a> </body> </html>
i需要发送
i need send
这篇关于如何从视图向控制器中的功能发送信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文