Skip to content

Commit

Permalink
Fixed default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Feb 8, 2019
1 parent 8f63797 commit 2715696
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.1.1
-----------------
* Fixed default theme

1.1.0
-----------------
* Update dependencies skeeks/cms 5.1.0
Expand Down
23 changes: 23 additions & 0 deletions src/DefaultTheme.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* @link https://cms.skeeks.com/
* @copyright Copyright (c) 2010 SkeekS
* @license https://cms.skeeks.com/license/
* @author Semenov Alexander <semenov@skeeks.com>
*/

namespace skeeks\cms\cmsbasic;

use yii\base\Theme;

/**
* @author Semenov Alexander <semenov@skeeks.com>
*/
class DefaultTheme extends Theme
{
public $pathMap = [
'@app/views' => [
'@app/templates/default',
],
];
}
6 changes: 1 addition & 5 deletions src/config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => [
'@app/templates/default',
],
],
'class' => \skeeks\cms\cmsbasic\DefaultTheme::class,
],
],
],
Expand Down

0 comments on commit 2715696

Please sign in to comment.