php - 参数太少而无法发挥作用
问题描述
控制器:
public function hapus ($id)
{
$where = array ('id' => $id);
$this->P_pejabat->hapus_data($where, 'pjbt');
redirect ('pejabat/index');
}
意见:
<td><?php echo anchor('pejabat/hapus/'.$pjb->id, '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>') ?></td>
它显示如下: 消息:
消息:函数 Pejabat::hapus() 的参数太少,在第 532 行的 C:\xampp\htdocs\ci\system\core\CodeIgniter.php 中传递了 0,而预期正好为 1
解决方案
推荐阅读
- ruby - RUBY:如何从字符串中提取 5 位数字(仅当存在时)
- c++ - 如何在c ++中将二叉搜索树的元素递归存储在向量中
- postgresql - PostgreSQL:将时区添加到列而不转换时间
- css - 在 CSS 中使用这些行的原因是什么
- reactjs - 如何在 React 的 Docker-Compose 中配置 .env 文件?
- javascript - 在角度日历中添加下拉菜单以更改活动状态
- python - Pystray 的 pyautogui 问题
- api - 显示 Stripe 帐单历史记录的最佳做法?
- python - 在 Python 中识别不同的声音
- c# - URL评估器的测试