hoaaah/start-your-up

企业着陆页模板

v1.0.0RC1 2017-04-18 16:24 UTC

This package is auto-updated.

Last update: 2024-09-08 07:30:46 UTC


README

启动您的创业网站

这是一个单页设计内容管理系统(CMS),适用于您的创业网站。此CMS使用 Startbootstrap-Agency 作为公共模板。

Agency

Agency 是一个响应式的单页组合主题,由 Start Bootstrap 创建,适用于 Bootstrap。此主题具有多个内容部分,响应式组合网格带有悬停效果,全页组合项模态框,响应式时间轴,以及工作PHP联系表单。

Start Bootstrap 由 David Miller 创建并由其维护,他是 Blackrock Digital 的所有者。

Start Bootstrap 基于 Bootstrap 框架,由 Mark OttoJacob Thorton 创建。

安装

安装此CMS的首选方式是通过 composer

运行以下命令

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist hoaaah/start-your-up [app_name]

然后创建您的数据库,并在 \common\config\main-local.php 中设置您的数据库配置。

<?php
return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=your_db_name',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ],
    ],
];

然后运行迁移以在所选数据库中创建表。

php yii migrate

此应用程序使用 google-maps-api,如果您没有,请访问 google-maps-api。在您获得您的api-key后,在 \common\config\params.php 中设置您的api-key。保存您的参数的首选方式是在 params-local.php。

<?php
return [
    'adminEmail' => 'admin@example.com',
    'supportEmail' => 'support@example.com',
    'user.passwordResetTokenExpire' => 3600,
    'uploadPath' => \Yii::getAlias('@common').'\web\\',
    'uploadUrl' => 'change-your-upload-url-here',
    // it recomended to create a subdomain to access static content or dynamic user generated content. 
    'googleApiKey' => 'your-google-api-here',
    'initialMapLatitude' => 'your-initial-map-latitude-here',
    'initialMapLongitude' => 'your-initial-map-longitude-here',
    'initialMapZoom' => 'your-initial-map-zoom-here',
];

最后,您可以通过 http://your_app_path/frontend/web/ 访问前端,通过 http://your_app_path/backend/web/ 访问后端。

用法

首次使用时,您需要创建您的凭证。访问 http://your_app_path/frontend/web/site/signup。

为了使地图更易于阅读,更改 initialMapZoom 参数。

如果需要使用供应商图像,调用供应商图像中的任何内容,可以使用以下方法

$image = hoaaah\agency\AgencyAsset::register($this);

<img src=<?= $agency->baseUrl.'/img/portfolio/startup-framework.png' ?> class="img-responsive" alt="">

它将从 /vendor/hoaaah/yii2-startbootstrap-agency/assets/img/portofolio/startup-framework.png 调用 startup-framework.png

创建者

此 Start-Your-Up CMS 由 Heru Arief Wijaya 创建并由其维护。