PHP code example of sergmoro1 / yii2-resort
1. Go to this page and download the library: Download sergmoro1/yii2-resort library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sergmoro1 / yii2-resort example snippets
return [
...
'modules' => [
...
'resort' => ['class' => 'sergmoro1\resort\Module'],
'slide' => ['class' => 'sergmoro1\slide\Module'],
],
return [
'email' => [
'admin' => '[email protected] ',
'contact' => '[email protected] ',
],
'commentsPerPage' => 5,
'authorShow' => true,
// Header menu (example)
'header-menu' => [
'items' => [
['label' => 'Service', 'title' => 'About your serveces', 'url' => ['site/index']],
['label' => 'Blog', 'title' => 'Posts about ...', 'url' => ['post/index']],
['label' => 'Feedback', 'title' => 'Send us a short message by email', 'url' => ['site/feedback']],
],
],
// Footer menus (example)
'footer-menu' => [
'first' => [
['label' => 'Service', 'title' => 'About your serveces', 'url' => ['site/index']],
['label' => 'Blog', 'title' => 'Posts about ...', 'url' => ['post/index']],
],
'second' => [
['label' => 'Feedback', 'title' => 'Send us a short message by email', 'url' => ['site/feedback']],
],
],
// fab fa-$icons[$id] fa-stack-1x fa-inverse
'icons' => [
'yandex' => 'yandex',
'vkontakte' => 'vk',
],
'common' => [
'slides' => [
['id' => 1, 'caption' => 'Реклама'],
['id' => 2, 'caption' => 'Характерная черта'],
['id' => 3, 'caption' => 'Ключевая услуга'],
],
// Description format
// Title # Subtitle # Slogan # Link
'highlights' => ['h4', 'p', 'small', 'b', 'p', 'small'],
],
];
cp ./vendor/sergmoro1/yii2-resort/src/initresort ./
php initresort