kaurava/parallax-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kaurava/parallax-bundle

最新稳定版本:0.1.3

Composer 安装命令:

composer require kaurava/parallax-bundle

包简介

Bundle for Parallax Effect

关键字:

README 文档

README

SensioLabsInsight Scrutinizer Code Quality Packagist Downloads Packagist Version

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

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

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following lines in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

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

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

        // ...
    }

    // ...
}

Step 3: Configure the bundle

Add the following lines to your config.yml file

# app/config/config.yml

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

To enable the dynamic routes, add the following to your routing configuration file.

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

oneup_uploader:
    resource: .
    type: uploader

Update yout database schema with

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

Then go to the /parallax route of your main route proyect

统计信息

  • 总下载量: 177
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-02