|
function form_open(string $action = '', array $attributes = [], array $hidden = []): string
{
// If no action is provided then set to the current url
if (! $action)
{
helper('url');
$action = current_url(true);
} // If an action is not a full URL then turn it into one
elseif (strpos($action, '://') === false)
{
helper('url');
$action = site_url($action);
}
只需要在form_open里面加上即可,可直接调用 form_open('create/forms')
第一次发帖子,刚接触CI4 发现有些小问题,所以发帖子看看
|
评分
-
查看全部评分
|