Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/244.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Codeigniter个人消息错误_Php_Codeigniter_Email_Error Handling - Fatal编程技术网

Php Codeigniter个人消息错误

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>

你好。发送消息后,获取错误: 当前无法处理此请求。 HTTP错误500 这是ekkator学校管理系统

我怎样才能修好它

<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>