public function actionList()
    {
        $templates = EmailTemplate::find()->all();

        return $this->render('list', [
            'templates' => $templates,
            'language' => $this->_languageProvider->getDefault()
        ]);
    }
public function actionList()
    {
        $templates = EmailTemplate::find()->all();

        return $this->render('list', [
            'templates' => $templates,
            'language' => $this->_languageProvider->getDefault()
        ]);
    }
public function actionList ( ) { $ templates = EmailTemplate :: find ( ) -> all ( ) ; return $ this -> render ( 'list' , [ 'templates' => $ templates , 'language' => $ this -> _languageProvider -> getDefault ( ) ] ) ; }
Rendering list of templates

@return string
Rendering list of templates