Php Codeigniter个人消息错误
你好。发送消息后,获取错误: 当前无法处理此请求。 HTTP错误500 这是ekkator学校管理系统 我怎样才能修好它Php Codeigniter个人消息错误,php,codeigniter,email,error-handling,Php,Codeigniter,Email,Error Handling,你好。发送消息后,获取错误: 当前无法处理此请求。 HTTP错误500 这是ekkator学校管理系统 我怎样才能修好它 <div class="mail-header" style="padding-bottom: 27px ;"> <!-- title --> <h3 class="mail-title"> <?php echo get_phrase('write_new_message'); ?> </h3>
<div class="mail-header" style="padding-bottom: 27px ;">
<!-- title -->
<h3 class="mail-title">
<?php echo get_phrase('write_new_message'); ?>
</h3>
:
错误是什么?可能是因为您在表单url中有一个问号?
您可以显示表单操作的回音。另外,如果您使用form_open,您不需要base_url,请按照以下说明操作:打开错误报告,以便我们看到500以外的内容以及您现在出现的实际错误';我更新了你的问题是不言自明的方法通知电子邮件也找不到,因为你没有';不要加载模型,否则它不会加载';不存在。将控制器代码张贴在称为“发送新”的位置会很有用
<?php echo form_open(base_url() . 'index.php?admin/message/send_new/', array('class' => 'form', 'enctype' => 'multipart/form-data')); ?>
<div class="form-group">
<label for="subject"><?php echo get_phrase('recipient'); ?>:</label>
<br><br>
<select class="form-control select2" name="reciever" required>
<option value=""><?php echo get_phrase('select_a_user'); ?></option>
<optgroup label="<?php echo get_phrase('student'); ?>">
<?php
$students = $this->db->get('student')->result_array();
foreach ($students as $row):
?>
<option value="student-<?php echo $row['student_id']; ?>">
- <?php echo $row['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<optgroup label="<?php echo get_phrase('teacher'); ?>">
<?php
$teachers = $this->db->get('teacher')->result_array();
foreach ($teachers as $row):
?>
<option value="teacher-<?php echo $row['teacher_id']; ?>">
- <?php echo $row['name']; ?></option>
<?php endforeach; ?>
</optgroup>
<optgroup label="<?php echo get_phrase('parent'); ?>">
<?php
$parents = $this->db->get('parent')->result_array();
foreach ($parents as $row):
?>
<option value="parent-<?php echo $row['parent_id']; ?>">
- <?php echo $row['name']; ?></option>
<?php endforeach; ?>
</optgroup>
</select>
</div>
<div class="compose-message-editor">
<textarea row="2" class="form-control wysihtml5" data-stylesheet-url="assets/css/wysihtml5-color.css"
name="message" placeholder="<?php echo get_phrase('write_your_message'); ?>"
id="sample_wysiwyg" required></textarea>
</div>
<br>
<!-- File adding module -->
<div class="">
<input type="file" class="form-control file2 inline btn btn-info" name="attached_file_on_messaging" accept=".pdf, .doc, .jpg, .jpeg, .png" data-label="<i class='entypo-upload'></i> Browse" />
</div>
<button type="submit" class="btn btn-success btn-icon pull-right">
<?php echo get_phrase('send'); ?>
<i class="entypo-mail"></i>
</button>