Skip to content

Commit

Permalink
Add custom header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Janki Uskoba committed May 23, 2021
1 parent 170c3c3 commit d40dd1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
* {@inheritDoc}
*/
class Module extends \navatech\base\Module {

/**
* Header string
* @var string
*/
public $title = 'File Manager';

/**
* @var string default folder which will be used to upload resource
Expand Down
3 changes: 1 addition & 2 deletions src/views/default/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
use yii\web\View;

RoxyMceAsset::register($this);

$this->title = Yii::t('roxy', 'File manager');
$this->title = Yii::t('roxy', $this->context->module->title);
$this->params['breadcrumbs'][] = ['label' => Yii::t('roxy', 'Files'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
Expand Down

0 comments on commit d40dd1a

Please sign in to comment.