账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    A question about yii2 framework
    60
    0

    when I read the codes of yiicms,  I found a problem that puzzles me all the time. The problem is discribed aretroactively s follow.

    $app = new yii\web\Application($config);

    yiibaseapplication::__construct($config);

    Component::__construct($config);

    1. add the debug statement that var_dump($this) later.  
    2. found as follow.

    public "bootstrap" =>
          array (size=3)
              0=>string  "log"
              1=>string "debug"
               2=>string "gii"
    private "_modules" (yiibasemodule)=>
           array (size=3)
                'backend'  =>....
                'debug' =>...
                'gii'=>...
    private  "_definitions"(yiidiservicelocator)=>
            array  (size=7)
               ...
               'log'=>...
               ...

    1. wonder when and where the private attributes _modules and _definitions  are inserted by values 'debug'  'gii'  and 'log'?
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 半旧情怀 普通会员 1楼

      Sure, I'd be happy to help with a question about the Yii2 framework. Please feel free to ask your question.

    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部