src/layers/Layer.php
public function setTitle()
    {
        switch ($this->type) {
            case self::TYPE_ERROR:
                $t = Yii::t('noty', 'Error');
                break;
            case self::TYPE_INFO:
                $t = Yii::t('noty', 'Info');
                break;
            case self::TYPE_WARNING:
                $t = Yii::t('noty', 'Warning');
                break;
            case self::TYPE_SUCCESS:
                $t = Yii::t('noty', 'Success');
                break;
            default:
                $t = '';
        }

        $this->title = $this->showTitle ? $t : '';
    }
public function setTitle()
    {
        switch ($this->type) {
            case self::TYPE_ERROR:
                $t = Yii::t('noty', 'Error');
                break;
            case self::TYPE_INFO:
                $t = Yii::t('noty', 'Info');
                break;
            case self::TYPE_WARNING:
                $t = Yii::t('noty', 'Warning');
                break;
            case self::TYPE_SUCCESS:
                $t = Yii::t('noty', 'Success');
                break;
            default:
                $t = '';
        }

        $this->title = $this->showTitle ? $t : '';
    }
public function setTitle ( ) { switch ( $ this -> type ) { case self :: TYPE_ERROR : $ t = Yii :: t ( 'noty' , 'Error' ) ; break ; case self :: TYPE_INFO : $ t = Yii :: t ( 'noty' , 'Info' ) ; break ; case self :: TYPE_WARNING : $ t = Yii :: t ( 'noty' , 'Warning' ) ; break ; case self :: TYPE_SUCCESS : $ t = Yii :: t ( 'noty' , 'Success' ) ; break ; default : $ t = '' ; } $ this -> title = $ this -> showTitle ? $ t : '' ; }
set title by type
set title by type