<legend id='5IRhj'><style id='5IRhj'><dir id='5IRhj'><q id='5IRhj'></q></dir></style></legend>
  • <tfoot id='5IRhj'></tfoot>
    <i id='5IRhj'><tr id='5IRhj'><dt id='5IRhj'><q id='5IRhj'><span id='5IRhj'><b id='5IRhj'><form id='5IRhj'><ins id='5IRhj'></ins><ul id='5IRhj'></ul><sub id='5IRhj'></sub></form><legend id='5IRhj'></legend><bdo id='5IRhj'><pre id='5IRhj'><center id='5IRhj'></center></pre></bdo></b><th id='5IRhj'></th></span></q></dt></tr></i><div id='5IRhj'><tfoot id='5IRhj'></tfoot><dl id='5IRhj'><fieldset id='5IRhj'></fieldset></dl></div>

    <small id='5IRhj'></small><noframes id='5IRhj'>

        • <bdo id='5IRhj'></bdo><ul id='5IRhj'></ul>

        对象配置必须是一个包含“类"的数组.yii2 中的元素与 mongodb

        Object configuration must be an array containing a quot;classquot; element in yii2 with mongodb(对象配置必须是一个包含“类的数组.yii2 中的元素与 mongodb)
          • <bdo id='aP0dR'></bdo><ul id='aP0dR'></ul>

            1. <small id='aP0dR'></small><noframes id='aP0dR'>

            2. <legend id='aP0dR'><style id='aP0dR'><dir id='aP0dR'><q id='aP0dR'></q></dir></style></legend>

                <tbody id='aP0dR'></tbody>

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

                  本文介绍了对象配置必须是一个包含“类"的数组.yii2 中的元素与 mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Error > 使用 yii2+ mongodb 登录或注册时出现错误.

                  Error > while login or signup using yii2+ mongodb gives an error.

                  MongoDB 与 yii2 的连接完成.请帮我解决这个问题.

                  MongoDB connection with yii2 is done. please help me to solve this problem.

                  main-local.php

                  main-local.php

                  return [
                      'components' => [
                              'mongodb' => [
                              'class' => 'yiimongodbConnection',
                              'dsn' => 'mongodb://sameer:27017/demo',
                          ],
                          'mailer' => [
                              'class' => 'yiiswiftmailerMailer',
                              'viewPath' => '@common/mail',
                               'useFileTransport' => true,
                          ],
                      ],
                  ];
                  

                  main.php

                  return [
                      'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
                      'components' => [
                          'cache' => [
                              'class' => 'yiicachingFileCache',
                          ],
                          'user' => [
                                  'identityClass' => 'commonmodelsUser',
                                  'enableAutoLogin' => false,
                              ],
                      ],
                  ];
                  

                  推荐答案

                  检查你的 vendoryiisoftextension.php在我安装了一个将不正确的配置数组添加到文件 vendoryiisoftextension.php 的软件包后,我遇到了同样的错误

                  Check your vendoryiisoftextension.php I had the same error after I had installed one package which add uncorrect config array to the file vendoryiisoftextension.php

                  'tigrov/yii2-country' =>
                       array (
                          'name' => 'tigrov/yii2-country',
                          'version' => '9999999-dev',
                          'alias' =>
                           array (
                             '@tigrov/country' => $vendorDir . '/tigrov/yii2-country/src',
                           ),
                          'bootstrap' => 'tigrov\country\Bootstrap',
                       ),
                  

                  我已将上一个更改为下一个(只是将引导程序包装在数组中)

                  I've changed the previous one to the next one (just wrapped bootstrap in array)

                  'tigrov/yii2-country' =>
                       array (
                          'name' => 'tigrov/yii2-country',
                          'version' => '9999999-dev',
                          'alias' =>
                           array (
                              '@tigrov/country' => $vendorDir . '/tigrov/yii2-country/src',
                           ),
                           array(
                              'bootstrap' => 'tigrov\country\Bootstrap',
                           )
                       ),
                  

                  这篇关于对象配置必须是一个包含“类"的数组.yii2 中的元素与 mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                  How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                  htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                  Joomla include database functions(Joomla 包含数据库功能)
                  nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                  Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)
                  <legend id='PpS1S'><style id='PpS1S'><dir id='PpS1S'><q id='PpS1S'></q></dir></style></legend>

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

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