sergmoro1/yii2-resort
Composer 安装命令:
composer require sergmoro1/yii2-resort
包简介
Rooms and price management for resort or inn.
README 文档
README
Advantages
The definition of rooms by category. Description of rooms, services provided. Determination of prices for rooms depending on the category, food, treatment.
Installation
- Install package.
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist sergmoro1/yii2-resort
or add
"sergmoro1/yii2-blog-tools": "~1.1"
to the require section of your composer.json.
- Init yii2-blog-tools
Blog init and configs as explained in sergmoro1/yii2-blog-tools.
- Run migration
php yii migrate --migrationPath=@vendor/sergmoro1/yii2-resort/src/migrations
- Copy predefined files to appropriate folders by bathch file
initresort
To get it make a command in app directory.
cp ./vendor/sergmoro1/yii2-resort/src/initresort ./
php initresort
To start the application, you need to determine the names of buildings of your hotel, room categories, accommodation options, food. As an example, you can run a migration.
- Prepare and run migration use an example
php yii migrate --migrationPath=@app/migrations/resort
Configuration
Change common/config/main.php.
return [ ... 'modules' => [ ... 'resort' => ['class' => 'sergmoro1\resort\Module'], 'slide' => ['class' => 'sergmoro1\slide\Module'], ],
Replace default frontend/config/main.php.
return [ 'email' => [ 'admin' => 'admin@your-site.ru', 'contact' => 'admin@your-site.ru', ], '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'], ], ];
Start
Enter http://your-app/backend/web and Login.
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-11