Yii Framework Forum: EasyiiCMS - Yii2 simple CMS - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

EasyiiCMS - Yii2 simple CMS Rate Topic: ****- 1 Votes

#21 User is offline   DeNozzo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-May 17

Posted 16 May 2017 - 05:01 AM

Hi Everybody,

I had been having a situation with changing the theme of the demo, i.e. the styling of the CMS frontend.
So for anyone else who could be a bit of a newbie like myself and strugling, as @auzadventure helped me with:

Add under AssetManager in the /config/web.php file, and add forceCopy =>true Like below:

'assetManager' => [
            // uncomment the following line if you want to auto update your assets (unix hosting only)
				//'linkAssets' => true,
			   'forceCopy' => true,  <-----------------------RIGHT HERE FOLKS

            'bundles' => [
                'yii\web\JqueryAsset' => [
                    'js' => [YII_DEBUG ? 'jquery.js' : 'jquery.min.js'],
                ],
                'yii\bootstrap\BootstrapAsset' => [
                    'css' => [YII_DEBUG ? 'css/bootstrap.css' : 'css/bootstrap.min.css'],
                ],
                'yii\bootstrap\BootstrapPluginAsset' => [
                    'js' => [YII_DEBUG ? 'js/bootstrap.js' : 'js/bootstrap.min.js'],
                ],
            ],
        ],

0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users