The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2mod/yii2-hg "*"
or add
"yii2mod/yii2-hg": "*"
to the require section of your composer.json.
SelfUpdateCommand
to the console.php
configuration file
'controllerMap' => [
'selfupdate' => 'yii2mod\hg\commands\SelfUpdateCommand',
],
Just add the following code to your main layout
<?php if (YII_DEBUG): ?>
<?php $this->title .= ' revision:' . \yii2mod\hg\helpers\HgHelper::getRevision(); ?>
<?php endif; ?>
Comments