pasinter/admanager-bundle 问题修复 & 功能扩展

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

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

pasinter/admanager-bundle

Composer 安装命令:

composer require pasinter/admanager-bundle

包简介

Ad Manager Bundle

README 文档

README

Introduction

This Symfony2 bundle offers a simple interface to manage website advertising.

Prerequisites

This version of the bundle requires Symfony 2.3.

##Installation

Step 1: Download AdManagerBundle using composer

This library is available on Packagist.

Add the following to your composer.json:

"require": {
    ...
    "pasinter/admanager-bundle": "dev-master",
    ...
}

And run

$ php composer.phar install

Composer will install the bundle to your project's vendor/pasinter directory.

Step 2: Enable the bundle

Add the bundle to app/AppKernel.php:

public function registerBundles()
{
    return array(
        ...
        new Pasinter\AdManagerBundle\PasinterAdManagerBundle(),
        ...
    );
}

Step 3: Configure dependencies

Install & configure SonataAdminBundle (https://github.com/sonata-project/SonataAdminBundle) and SonataMediaBundle (https://github.com/sonata-project/SonataMediaBundle)

Step 4: Update your database schema

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

+### Step 5: Update your app/config/config.yml

sonata_media:
    contexts:
        admanager:
            providers:
                - sonata.media.provider.image
            formats:
                small: { width: 150 , quality: 95 } # use your desired format
                big:   { width: 500 , quality: 90 } # use your desired format
                carousel: { width: 710, quality: 90} # use your desired format

Usage

Ad Management

Login to http://app.com/app_dev.php/admin. Under "Ad Manager" you can manage Ads and Campaigns

Ads

An Ad has Link, Title and Image fields.

Campaigns

Campaigns have unique code that can be used to display them on frontend.

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-12