kaurava/parallax-bundle

此包已被废弃,不再维护。作者建议使用sakyastelios/parallax-bundle包。

Parallax效果包

安装: 177

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 1

开放问题: 0

语言:HTML

类型:symfony-bundle

0.1.3 2015-05-21 00:25 UTC

This package is not auto-updated.

Last update: 2015-11-04 17:47:46 UTC


README

SensioLabsInsight Scrutinizer Code Quality Packagist Downloads Packagist Version

安装

步骤1:下载包

打开命令行控制台,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本

$ composer "kaurava/parallax-bundle": "dev-master"

此命令要求您已全局安装Composer,如Composer文档中的安装章节所述。

步骤2:启用包

然后,通过在您的项目的app/AppKernel.php文件中添加以下行来启用包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Kaurava\ParallaxBundle\ParallaxBundle(),
            new Oneup\UploaderBundle\OneupUploaderBundle(),
        );

        // ...
    }

    // ...
}

步骤3:配置包

将以下行添加到您的config.yml文件中

# app/config/config.yml

oneup_uploader:
    mappings:
        gallery:
            frontend: dropzone # or any uploader you use in the frontend

要启用动态路由,将以下内容添加到您的路由配置文件中。

#  app/config/routing.yml
parallax:
    resource: "@ParallaxBundle/Resources/config/routing.yml"
    prefix:   /parallax

oneup_uploader:
    resource: .
    type: uploader

使用以下命令更新数据库模式

php app/console doctrine:schema:update --force

然后转到您主路由项目的/parallax路由