|
本帖最后由 zkyy66 于 2012-3-26 18:47 编辑
c层:
public funtion userLogin($user, $pass) {
这里面啥也不写就报错
}
写成 funtion userLogin($user, $pass) {
这里面啥也不写就报错
} 同样报错
view页面
<?php $data = array(
'name' => 'username',
'id' => 'username',
'value' => '',
'size' => 20
);
$pass = array(
'name' => 'password',
'id' => 'password',
'value' => '',
'size' => 20
);
?>
<html>
<head>
<title>Home-<?=$title?></title>
</head>
<body>
<form action="<?=base_url()?>index.php/home/userLogin" name="showform" method="post">
UserName:<?=form_input($data);?><br />
PassWord:<?=form_password($pass);?><br />
<?=form_submit('submit', 'soga');?>
</form>
</body>
</html>
这样提示错误,求解
错误信息
A PHP Error was encounteredSeverity: Warning
Message: Missing argument 1 for Home::userLogin()
Filename: controllers/home.php
Line Number: 21
|
|