Meet the new release.
- Updated template system
- Removed templateDefault \ skeeks \ cms \ components \ Cms property
- Fixed error display when trying to log into the admin panel of an unauthorized user.
- Is depricated \ skeeks \ cms \ components \ Cms property templateDefault (view theme yii2 will be used)
This release is not quite smoothly installed, so it is so short.
The main thing that has been done is the correct overlapping of templates.
An example of configuring templates.
'cms' => [ 'templates' => [ 'marketplace' => [ 'name' => 'Шаблон для marketplace', 'pathMap' => [ '@app/views' => [ '@app/templates/marketplace', '@app/templates/default', ] ], ], ], ],
In this example, we configured the template so that any requested template file was originally requested in the '@ app / templates / marketplace' directory, then if it is not there in the base template directory.
Also added alias.
This means that it is possible to render templates like this:
\Yii::$app->view->render('@template/header', ); //Аналогичная запись \Yii::$app->view->render('@app/views/header', );
- Apr 29, 2020
- Aug 13, 2019
- Apr 18, 2019