2017 © Pedro Peláez
 

yii2-extension yii2-ethnicmedia-client

Ethnicmedia client

image

martrix/yii2-ethnicmedia-client

Ethnicmedia client

  • Thursday, September 10, 2015
  • by martrix78
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Ethnicmedia client

Ethnicmedia client, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist martrix/yii2-ethnicmedia-client "*"

or add, (*4)

"martrix/yii2-ethnicmedia-client": "*"

to the require section of your composer.json file., (*5)

Usage

  1. Add to params.php 'EM_apiKey' => API KEY,, (*6)

  2. Add to SiteController.php, (*7)

    public function actions(){
        return array(
        'emclient' => array(
            'class'    => '\martrix\ethnicmediaClient\EmclientAction',
            'debug'    => true,
            'lang'     => 'en',
            'adsLimit' => 20,

          ),
        );
    }

    public function actionClassifield(){
        $categoryId=Yii::$app->request->get('categoryId');
        $page=Yii::$app->request->get('page');
        return $this->render('ad',['categoryId'=>$categoryId,'page'=>$page]);
    }

example of use on template (ad.php):, (*8)

<?php echo \martrix\ethnicmediaClient\Emformwidget::widget(['adId'=>5]); ?>





<?php echo \martrix\ethnicmediaClient\Emadsdisplaywidget::widget(['categoryId'=>$categoryId,'page'=>$page]); ?>

The Versions

10/09 2015

dev-master

9999999-dev

Ethnicmedia client

  Sources   Download

Apache-2.0

The Requires

 

by Andrew Russkin (EthnicMedia)

extension yii2 ethnicmedia ad post system