加載邏輯Yii中組件components的加載是在CApplication被實例化的時候執行的。代碼:public function __construct($config=null) { ...... $this->