This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\modules\admin\models; | |
use Yii; | |
use app\modules\admin\validators\EscapeValidator; | |
use omgdef\multilingual\MultilingualBehavior; | |
class SeoText extends \app\modules\admin\components\ActiveRecord { | |
public static function tableName() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\db\Migration; | |
use yii\db\Schema; | |
use app\modules\admin\models\SeoText; | |
class add_seo_localization extends Migration | |
{ | |
public $engine = 'ENGINE=MyISAM DEFAULT CHARSET=utf8'; | |
public $table_name = 'easyii_seotext_lang'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\bootstrap\BootstrapPluginAsset; | |
use yii\helpers\Html; | |
BootstrapPluginAsset::register($this); = ['class' => 'control-label'] = ['class' => 'form-control']; | |
?> | |
<p> | |
<a class="dashed-link collapsed" data-toggle="collapse" href="#seo-form" aria-expanded="false" aria-controls="seo-form"><?= Yii::t('easyii', 'Seo texts')?></a> | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace app\components; | |
use Yii; | |
use yii\base\InvalidConfigException; | |
use yii\web\Cookie; | |
use yii\web\UrlManager as BaseUrlManager; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
'urlManager' => [ | |
'class' => 'app\components\UrlManager', | |
'rules' => [ | |
// ... | |
], | |
'enableDefaultLanguageUrlCode' => true, | |
'languages' => ['lv', 'en', 'ru'], | |
] | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync stuff |