YiiClassMap 和 YiiRewriteMap config load 未写进index.php

bug问题 · Qiang · 于 4年前 发布 · 1162 次阅读

YiiClassMap 和 YiiRewriteMap config load 未写进index.php 导致重写失效

共收到 3 条回复
Fecmall#14年前 0 个赞

例子:

// yii class rewrite map
                'yiiClassMap' => [
                    // 'fecshop\app\appfront\helper\test\My' => '@appfront/helper/My.php',
                ],
                // 重写model和block
                'fecRewriteMap' => [
                    '\fecshop\app\appfront\modules\Catalog\block\category\Index'  => '\fecyo\app\appfront\modules\Catalog\block\category\Index',
                    // '\fecshop\app\appfront\modules\Customer\block\address\Edit'  => '\fectb\app\appfront\modules\Customer\block\address\Edit',
                ],

仔细看一下格式。

Qiang#24年前 0 个赞

理解了, 那 YiiClassMap.php 文件是多余的

Fecmall#34年前 0 个赞

不是的,本地开发重写,是需要写到那个文件的

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics