?>

Release SkeekS CMS 2.0.2

Release SkeekS CMS 2.0.2

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.

\Yii::setAlias('template', '@app/views/'); 

This means that it is possible to render templates like this:

\Yii::$app->view->render('@template/header', []); //Аналогичная запись \Yii::$app->view->render('@app/views/header', []); 

All Comments (0)
No Comments