I have these lines in my view file
////////////////////////////
$a = 5;
showme()
showme()
{
global $a;
echo $a;
}
////////////////////////////////
Problem: $a is not accessible in showme() function.
I have no choice to pass $a
as argument and
no choice to move function from view.
and it should be accessible in function through global
keyword only...
I can change the way of declaration to $a
.
Thanks in advance...