2017 © Pedro Peláez
 

project app-single-page

Single-page site template based on Yii 2 framework.

image

simple-yii2/app-single-page

Single-page site template based on Yii 2 framework.

  • Saturday, January 21, 2017
  • by dkhlystov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 6 % Grown

The README.md

Single-page site template

This is a single-page template based on Yii PHP Framework Version 2., (*1)

INSTALLATION

If you do not have Composer, you may install it by following the instructions at getcomposer.org., (*2)

You can then install this project template using the following command:, (*3)

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist simple-yii2/app-single-page single-page

CONFIGURATION

Database

Edit the file config/db.php with real data., (*4)

NOTES: - Application won't create the database for you, this has to be done manually before you can access it. - Check and edit the other files in the config/ directory to customize your application as required., (*5)

Once the database is configured, open in browser your_app/cms page. On first start, the control system will create an tables in database and add the required rows to get started., (*6)

Application

All you need is set name and language properties of your application in config/web.php file., (*7)

Mailer

To receive messages from site you need to configure mailer property in config/web.php file., (*8)

For more information see yii\swiftmailer\Mailer, (*9)

Domain

Replace domain.com with your domain name in web/.htaccess and web/robots.txt files., (*10)

CONTENT MANAGEMENT SYSTEM

To access content management system open your_app/cms page. You can change this address by modifying rule for urlManager in config/web.php., (*11)

For more information see simple-yii2/cms., (*12)

User management

By default there are one user with e-mail and password admin. After first login the system will ask you to change your password., (*13)

For more information see simple-yii2/user., (*14)

Page content

To edit page content use Pages module, available from the Modules menu. To customize layout edit views/layouts/main.php file., (*15)

For more information see simple-yii2/page., (*16)

Feedback form

To add feedback form use cms\feedback\frontend\widgets\Feedback widget. Note, that you need to set e-mail in Feedback module, available from the Modules menu., (*17)

For more information see simple-yii2/feedback., (*18)

Blocks with user-defined content

Use Settings module from the Modules menu to solve this issue. In application code block content available with cms\settings\frontend\widgets\Settings widget., (*19)

For more information see simple-yii2/settings., (*20)

Error page

Customize error page by editing views/site/error.php file., (*21)

Search engine optimization

To manage title, meta-keywords and meta-description, use the settings with title, keywords and description aliases., (*22)

Disable debug in production

Disable debug in production in file web/index.php., (*23)

Storage

All uploaded files placed in web/upload directory. When it stored, it placed in storage directory. Stored files is cached in web/public directory., (*24)

The Versions