Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个类别列表,旁边有编辑和删除按钮,当我单击编辑按钮时,我被重定向到编辑类别页面,但现在我只想获取类别名称并将其回显在字段中,以便用户可以编辑它。它是如此简单,但我对代码点火器很陌生。我想我知道如何得到它,它只是返回它并在视图中呼应它。
您可以像这样获取值并设置值
<input type="text" name="category" value="<?php echo set_value('category', $category_name); ?>" size="50" />