定制 martrix/yii1-ethnicmedia-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

martrix/yii1-ethnicmedia-client

Composer 安装命令:

composer require martrix/yii1-ethnicmedia-client

包简介

Ethnicmedia client

README 文档

README

=== EthnicMedia ===
Contributors: EthnicMedia,
Tags: EthnicMedia, Ad, classifield
Requires at least: 3.2
Tested up to: 4.2.3
Stable tag: 4.2.3
License: GPLv2 or later



== Description ==
System allows you to receive private messages and display them on your site.
To obtain API key to register http://core.ethnicmedia.us


== Installation ==

1. Upload the  plugin to your extension directory,
2. add to config.php
 	'aliases' => array(
		'emclient'  => dirname(__FILE__) . '/../extensions/' ,
	),
3. Add to params
	'EM_apiKey' => API KEY,

4. Add to SiteController.php

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

		  ),
		);
	}

	public function actionClassifield(){
		$categoryId=Yii::app()->request->getParam('categoryId');
		$page=Yii::app()->request->getParam('page');
		$this->render('ad',array('categoryId'=>$categoryId,'page'=>$page));
	}

example of use on  template (ad.php):

<div id="EM_ad_form"  class="adform">
	<?php $this->widget('emclient.Emformwidget',array('adId'=>5))?>
</div>
<div class="ad">
	<?php $this->widget('emclient.Emadsdisplaywidget',array('categoryId'=>$categoryId,'page'=>$page))?>
</div>


== Changelog ==

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-09-10