我正在尝试在 CodeIgniter 中构建一个简单的表单。我的 VIEW 'input_view.php' 是:
<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$css"?>">
</head>
<body>
<div id="header">
<?php $this->load->view('books_header'); ?>
</div>
<div id="menu">
<?php $this->load->view('books_menu'); ?>
</div>
<?php //echo $title; ?>
<?php echo form_open('books/input'); ?>
<?php echo $title; ?>
<?php echo form_input('title'); ?>;
<?php echo $author; ?>
<?php echo form_input('author'); ?>
<?php echo $publisher; ?>
<?php echo form_input('publisher'); ?>
<?php echo $year; ?>
<?php echo form_dropdown('year',$years); ?>
<?php echo $available; ?>
<?php echo form_checkbox('available','yes',TRUE); ?>
<?php echo $summery; ?>
<?php echo form_textarea('summery'); ?>
<?php echo form_submit('mysubmit', 'Submit'); ?>
<?php echo form_close(); ?>
<div id="footer">
<?php $this->load->view('books_footer'); ?>
</div>
</body>
</html>
但是当我尝试时http://localhost/CodeIgniter/index.php/books/input
,它没有显示表单,而是显示 page upto menu
。这里有什么问题?