Codeigniter个人消息错误

时间:2018-04-01 05:59:31

标签: 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>

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

评论错误。

  

致命错误:在第343行的/home/mtschool/public_html/sms/application/models/Crud_model.php中调用未定义的方法Email_model :: notify_email()遇到PHP错误严重性:警告消息:无法修改标头信息 - 已经发送的标头(输出从/home/mtschool/public_html/sms/application/models/Crud_model.php:343开始)文件名:core / Common.php行号:569 Backtrace:遇到PHP错误严重性:错误消息:调用未定义的方法Email_model :: notify_email()文件名:models / Crud_model.php行号:343 Backtrace:

0 个答案:

没有答案