本文整理汇总了PHP中Addons::createAddonUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Addons::createAddonUrl方法的具体用法?PHP Addons::createAddonUrl怎么用?PHP Addons::createAddonUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Addons
的用法示例。
在下文中一共展示了Addons::createAddonUrl方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _loginSuccessOnClient
private function _loginSuccessOnClient($local_uid, $type)
{
if ($login = M('login')->where('uid=' . $local_uid . " AND type='location'")->find()) {
$data['oauth_token'] = $login['oauth_token'];
$data['oauth_token_secret'] = $login['oauth_token_secret'];
$data['uid'] = $local_uid;
$data['type'] = 'location';
} else {
$data['oauth_token'] = getOAuthToken($local_uid);
$data['oauth_token_secret'] = getOAuthTokenSecret();
$data['uid'] = $local_uid;
$data['type'] = 'location';
M('login')->add($data);
}
redirect(Addons::createAddonUrl('Login', 'login_success_on_client', $data));
}
示例2: function
?>
</p>
<?php
}
?>
</dd>
<dt class="xline"></dt>
</dl>
</div>
<?php
}
?>
<script type="text/javascript">
var rm_feed_top = function(feed_id) {
$("#feed_top_"+feed_id).fadeOut(1000);
};
function close_feed_top(feed_id){
$.post("<?php
echo Addons::createAddonUrl('FeedTop', 'close_feed_top');
?>
",{feed_id:feed_id},function(txt){
if(txt==1){
$("#feed_top_"+feed_id).fadeOut(1000);
}else{
alert('我感冒了,不灵了,请帮我联系管理员吧!');
}
});
}
</script>
示例3: do_scorecharge
public function do_scorecharge()
{
$modelDevelopRechargeRecord = D('DevelopRechargeRecord', 'develop');
$orderNumber = 'CZ' . getOrderNumber();
// $price = intval($_POST['charge_value']);
$price = 0.01;
$data['serial_number'] = $orderNumber;
$data['charge_type'] = intval($_POST['charge_type']);
$data['charge_value'] = $price;
$data['uid'] = $this->mid;
$data['ctime'] = time();
$result = D('credit_charge')->add($data);
$res = array();
if ($result) {
$res['status'] = 1;
$res['info'] = '充值成功';
$params = array('order_nu' => $orderNumber, 'price' => $price, 'type' => 1, 'explain' => '积分充值');
switch ($data['charge_type']) {
case '1':
$res['request_url'] = Addons::createAddonUrl('Tenpay', 'tenpay_to', $params);
break;
case '2':
$res['request_url'] = Addons::createAddonUrl('Alipay', 'alipay_to', $params);
break;
default:
$res['request_url'] = '';
break;
}
} else {
$res['status'] = 0;
$res['info'] = '充值失败';
}
exit(json_encode($res));
}
示例4: editAdSpace
/**
* 编辑广告位页面
* @return void
*/
public function editAdSpace()
{
// 位置数组
$placeArr = $this->_getPlaceData();
$this->assign('placeArr', $placeArr);
// 获取广告位信息
$id = intval($_GET['id']);
$data = $this->model('AdSpace')->getAdSpace($id);
// 轮播图片内容解析
if ($data['display_type'] == 3) {
$data['content'] = unserialize($data['content']);
foreach ($data['content'] as &$value) {
$attachInfo = model('Attach')->getAttachById($value['banner']);
$value['bannerpic'] = getImageUrl($attachInfo['save_path'] . $attachInfo['save_name']);
}
}
$this->assign('data', $data);
$this->assign('editPage', true);
$placeInfo = $this->_getPlaceByID($data['place']);
$this->assign('placeInfo', $placeInfo);
$previewUrl = Addons::createAddonUrl('AdSpace', 'previewPic');
$this->assign('previewUrl', $previewUrl);
$this->display('addAdSpace');
}
示例5: weibo_js_plugin
public function weibo_js_plugin()
{
echo '<script type="text/javascript" src="' . Addons::createAddonUrl('WeiboType', 'loadJs') . '"></script>';
}