Hi guys i’m new here currently learning the amazing world of Yii Framework. But i have a problem now…
I’m developing a script to just share a link on facebook but i need to open the link in a popup window when the user clic on it, instead of opening a new tab in the explorer. So how can i use window.open onclick event ?
This is my current working code opening in a new tab instead a popup.
<?php
$link = 'facebook.com/sharer/sharer.php?u=' . aUrl('/referral/catch',array('id' => app()->user->id));
echo CHtml::link($this->t('Share it on Facebook'),$link,
array('target' => '_blank'));
?>
Hi bro, remember you can use Ajax with JQuery and to make use of it for your objective… If I need to be more explicit just tell me, cause I’m not sure if you already get me… Keep communication that we can help you…good luck