2017 © Pedro Peláez
 

yii2-extension yii2-announcement

write and read announcement in a frontend and backend

image

vov/yii2-announcement

write and read announcement in a frontend and backend

  • Monday, August 15, 2016
  • by akaVoV
  • Repository
  • 1 Watchers
  • 0 Stars
  • 40 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Yii2-Announcement

Announcement module allows you to have announcement board with infinitely nested categories and regions, (*1)


Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist vov/yii2-announcement "*"

or add, (*4)

"vov/yii2-announcement": "*"

Migration

you can use migrations that already exist in console/migartions, (*5)

    $ yii migrate --migrationPath='@vov/announcement/console/migrations'

or, (*6)

    $ yii migrate --migrationPath=@vendor/vov/yii2-announcement/console/migrations

it will create the tables: 1. an_cats - categories 2. an_regions - with data of all regions of Ukraine (uk-UA) 3. an_items - advertisement, (*7)

Configuring

Configure common/config as follows, (*8)

    'modules' => [
        'announcement' => [
            'class' => 'vov\announcement\Module',
        ],
    ],

Configure backend/config as follows, (*9)

    'modules' => [
        'announcement' => [
            'controllerNamespace' => 'vov\announcement\backend\controllers',
        ],
    ],

Usage

to access to frontend: http://example.com/announcement/anitems http://example.com/announcement/anitems/create, (*10)

to access to backend: http://backend.example.com/announcement/anitems http://backend.example.com/announcement/ancats http://backend.example.com/announcement/anregions, (*11)

Also you can use a widget where you need as follows:, (*12)

   <?= \vov\announcement\widgets\Announcement::widget([
       'perPage' => 5,
   ]); ?>

Generate module translations

    $ yii message vendor/vov/yii2-announcement/messages/config.php

The Versions

15/08 2016
09/10 2015

0.9.2

0.9.2.0

write and read announcement in a frontend and backend

  Sources   Download

Apache-2.0

The Requires

 

extension yii2 announcement

06/10 2015

0.9.1

0.9.1.0

write and read announcement in a frontend and backend

  Sources   Download

Apache-2.0

The Requires

 

extension yii2 announcement

06/10 2015

0.9.0

0.9.0.0

write and read announcement in a frontend and backend

  Sources   Download

Apache-2.0

The Requires

 

extension yii2 announcement