Codeigntier扩展电子邮件库ci 3.0.4 [英] Codeigntier extend Email library ci 3.0.4

查看:63
本文介绍了Codeigntier扩展电子邮件库ci 3.0.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过执行以下步骤来覆盖电子邮件库:

I have trying to override the email library by doing the following steps:


  1. 创建文件core / MY_Email.php

  2. 在下面的文件中添加代码

  1. Create file core/MY_Email.php
  2. In file add code below

<?php
class MY_Email extends CI_Email {

    public function __construct()
    {
        parent::__construct();
    }
?>


  • 加载库正常

  • Load library is normal

        $this->load->library('email');
    


  • 我死了类,它似乎甚至都没有包含在内,只是使用常规的系统电子邮件类。我需要扩展它以覆盖_smtp_connect()。我已经在其他课程上做到了这一点。

    I put a die in the top of my class and it appears to not even be included and just uses the regular system email class. I need to extend it to override _smtp_connect(). I have done this with other classes.

    我正在使用CI 3.0.4。我试图通过loader类进行跟踪。

    I am using CI 3.0.4. I have tried to trace through the loader class; but cannot figure it out.

    推荐答案

    将MY_Email.php放入应用程序/库

    Put MY_Email.php in application/libraries

    这篇关于Codeigntier扩展电子邮件库ci 3.0.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆