so i need to do something that based on user's session
if(!isset($_SESSION['userID'])){
$text = "<section>
<table>
<tr data-ng-repeat=\"msg in msgs\"
data-ng-click=\"function($event, ms,'lalalala')\"
<td>blablabla</td>
</tr>
</table>
</section>";
echo $text;
}
The code above keep resulting error with
Undefined variable: event
Is there anything wrong??