Take care about $user var on templates

Notice: This thread is very old.
alnux
Member | 139
+
+1
-

Hi there i had a issue declaring $user for templates

$this->template->user ='My name'

if you use this variable in yor templates, it will overwrite the template $user var that is an instance of \Nette\Security\User

so be careful beginners

Garcha
Member | 9
+
0
-

Nicely mentioned, thanks