0
我在警予2是新的, 我想METRONIC主題yii2應用集成, 我指本網站https://github.com/dlds/yii2-metronic整合.. 錯誤Fatal error: Class 'dlds\metronic\Metronic' not found in C:\wamp\www\basic\config\web.php
,
請人幫我。YII 2 - METRONIC主題整合
我在警予2是新的, 我想METRONIC主題yii2應用集成, 我指本網站https://github.com/dlds/yii2-metronic整合.. 錯誤Fatal error: Class 'dlds\metronic\Metronic' not found in C:\wamp\www\basic\config\web.php
,
請人幫我。YII 2 - METRONIC主題整合
有你這個代碼編輯你的config/web.php:
'resources'=>'[path to my web]/web/metronic/assets/theme/assets',
:
'components' => [
'metronic'=>[
'class'=>'dlds\metronic\Metronic',
'resources'=>'[path to my web]/web/metronic/assets/theme/assets',
'style'=>\dlds\metronic\Metronic::STYLE_MATERIAL,
'theme'=>\dlds\metronic\Metronic::THEME_LIGHT,
'layoutOption'=>\dlds\metronic\Metronic::LAYOUT_FLUID,
'headerOption'=>\dlds\metronic\Metronic::HEADER_FIXED,
'sidebarPosition'=>\dlds\metronic\Metronic::SIDEBAR_POSITION_LEFT,
'sidebarOption'=>\dlds\metronic\Metronic::SIDEBAR_MENU_ACCORDION,
'footerOption'=>\dlds\metronic\Metronic::FOOTER_FIXED,
],]
您放置在該行的組件,您必須確保