public function init() { $this->siteName = Yii::t('InstallModule.install', 'Yupe!'); $this->siteKeyWords = Yii::t('InstallModule.install', 'Yupe!, yupe, cms, yii'); $this->siteDescription = Yii::t('InstallModule.install', 'Yupe! - the fastest way to create a site build on top of Yiiframework!'); parent::init(); }
public function validate() { $year = Yii::app()->dateFormatter->format("yyyy", $ths->date); if (!($year >= 1900 && $year <= 2050)) { $this->addError('date', 'Данный год не поддерживается системой'); } return parent::validate(); }