简体   繁体   English

如何从joomla 3中的idevafiliate引荐链接获取idevaffiliate user_id

[英]How to get idevaffiliate user_id from idevafiliate referral link in joomla 3

I'm using idevaffiliate referral URL for redirecting on Joomla site. 我正在使用idevaffiliate引荐网址在Joomla网站上进行重定向。

For eg. 例如。 the refrral link for idevaffiliate idevaffiliate的刷新链接

localhost/iaji/idevaffiliate/idevaffiliate.php?id=100

I want to get the affiliate user id in Joomla. 我想在Joomla中获取会员用户ID。 Anybody know s the integration of idevaffiliate with Joomla 3. 谁都知道idevaffiliate与Joomla 3的集成。

You can get any variables passed to joomla using jinput - http://docs.joomla.org/API17:JInput 您可以使用jinput得到传递到Joomla任何变量- http://docs.joomla.org/API17:JInput

$jinput = JFactory::getApplication()->input;
$foo = $jinput->get('nameyofyourvar', '0', null);

I wouldn't call it "id", though, as that may well conflict with Joomla's own variables. 不过,我不会将其称为“ id”,因为这很可能与Joomla自己的变量发生冲突。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM