<tfoot id='9dvGX'></tfoot>

    • <bdo id='9dvGX'></bdo><ul id='9dvGX'></ul>
    <legend id='9dvGX'><style id='9dvGX'><dir id='9dvGX'><q id='9dvGX'></q></dir></style></legend>

      1. <i id='9dvGX'><tr id='9dvGX'><dt id='9dvGX'><q id='9dvGX'><span id='9dvGX'><b id='9dvGX'><form id='9dvGX'><ins id='9dvGX'></ins><ul id='9dvGX'></ul><sub id='9dvGX'></sub></form><legend id='9dvGX'></legend><bdo id='9dvGX'><pre id='9dvGX'><center id='9dvGX'></center></pre></bdo></b><th id='9dvGX'></th></span></q></dt></tr></i><div id='9dvGX'><tfoot id='9dvGX'></tfoot><dl id='9dvGX'><fieldset id='9dvGX'></fieldset></dl></div>

        <small id='9dvGX'></small><noframes id='9dvGX'>

        在 Yii 控制台应用程序中不自动加载 Mongo 类

        Mongo classes not autoloading in Yii console application(在 Yii 控制台应用程序中不自动加载 Mongo 类)
        <legend id='OTAq5'><style id='OTAq5'><dir id='OTAq5'><q id='OTAq5'></q></dir></style></legend>
      2. <small id='OTAq5'></small><noframes id='OTAq5'>

              <tbody id='OTAq5'></tbody>
            <tfoot id='OTAq5'></tfoot>
            1. <i id='OTAq5'><tr id='OTAq5'><dt id='OTAq5'><q id='OTAq5'><span id='OTAq5'><b id='OTAq5'><form id='OTAq5'><ins id='OTAq5'></ins><ul id='OTAq5'></ul><sub id='OTAq5'></sub></form><legend id='OTAq5'></legend><bdo id='OTAq5'><pre id='OTAq5'><center id='OTAq5'></center></pre></bdo></b><th id='OTAq5'></th></span></q></dt></tr></i><div id='OTAq5'><tfoot id='OTAq5'></tfoot><dl id='OTAq5'><fieldset id='OTAq5'></fieldset></dl></div>
              • <bdo id='OTAq5'></bdo><ul id='OTAq5'></ul>
                • 本文介绍了在 Yii 控制台应用程序中不自动加载 Mongo 类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 Yii &mongodb(YiiMongoDbSuite 扩展),并创建了一个控制台应用程序.但它不起作用给出错误,

                  I am using Yii & mongodb(YiiMongoDbSuite extension), and created a console application. But its not working giving the error,

                  include(Mongo.php): 无法打开流:没有那个文件或目录在文件/var/www/yii/framework/YiiBase.php 第 418 行

                  include(Mongo.php): failed to open stream: No such file or directory in file /var/www/yii/framework/YiiBase.php at line 418

                  我已将 console.php 配置为包含所有模块、组件和模型.但是还是报错.

                  I have configure the console.php to include all the modules, components and models. But still giving the error.

                  推荐答案

                  Mongo class 是 php mongo 扩展的一部分,与 YiiMongoDbSuite 无关.这意味着未加载 mongo php 扩展.确保您的 cli php 使用了正确的(或任何)php.ini.您可能已经在 httpd.conf 中定义了 ini 路径,但它仅供 apache 使用.
                  最简单的解决方法是将 php.ini 放入您的 php 文件夹中.

                  Mongo class is a part of php mongo extension, it is not related to YiiMongoDbSuite. This means that mongo php extension is not loaded. Make sure, that your cli php is using proper (or any) php.ini. You might have defined ini path in httpd.conf, but it is used only by apache.
                  Easiest fix is to drop php.ini into your php folder.

                  这篇关于在 Yii 控制台应用程序中不自动加载 Mongo 类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                      <tbody id='wBv5v'></tbody>

                      <small id='wBv5v'></small><noframes id='wBv5v'>

                    1. <tfoot id='wBv5v'></tfoot>
                        <i id='wBv5v'><tr id='wBv5v'><dt id='wBv5v'><q id='wBv5v'><span id='wBv5v'><b id='wBv5v'><form id='wBv5v'><ins id='wBv5v'></ins><ul id='wBv5v'></ul><sub id='wBv5v'></sub></form><legend id='wBv5v'></legend><bdo id='wBv5v'><pre id='wBv5v'><center id='wBv5v'></center></pre></bdo></b><th id='wBv5v'></th></span></q></dt></tr></i><div id='wBv5v'><tfoot id='wBv5v'></tfoot><dl id='wBv5v'><fieldset id='wBv5v'></fieldset></dl></div>

                      • <legend id='wBv5v'><style id='wBv5v'><dir id='wBv5v'><q id='wBv5v'></q></dir></style></legend>
                        • <bdo id='wBv5v'></bdo><ul id='wBv5v'></ul>