Welcome Guest, Not a member yet? Register   Sign In
Glyphicon anchoring and variable issue
#1

Hello!!

I have 2 things Im trying to figure out:

1. How do one anchor a glyphicon if possible? I would like to use one as a link instead of wording.

2. Got a undefined variable error for this code: if ($video == 0), do I change the number value to correct it?

Thanks so very much!!

Heart Heart ,
Mekaboo
Reply
#2

1. It's just "text"-element. You can put it inside whatever you want.
Code:
<a href="#">
    <span class="glyphicon glyphicon-asterisk"></span>
</a>

echo anchor('#', '<span class="glyphicon glyphicon-asterisk"></span>');

2. No one can answer that question for you, as you haven't provided any source code. But as the error message says; Your variable $video aren't set. So when it tries to check/validate it with ==. It won't find the source of $video and give that exact error message.
Reply
#3

(06-19-2019, 12:43 AM)jreklund Wrote: 1. It's just "text"-element. You can put it inside whatever you want.
Code:
<a href="#">
   <span class="glyphicon glyphicon-asterisk"></span>
</a>

echo anchor('#', '<span class="glyphicon glyphicon-asterisk"></span>');

2. No one can answer that question for you, as you haven't provided any source code. But as the error message says; Your variable $video aren't set. So when it tries to check/validate it with ==. It won't find the source of $video and give that exact error message.
Thank you for the help! Actually I took out some code so things work better as of now. Heart
Reply




Theme © iAndrew 2016 - Forum software by © MyBB