Hi all - I’m probably doing something stupid here, but why doesn’t this work?
<?php if($user != $site->user()): ?>when this works:
<?php if($user == $site->user()): ?>I want to show some content only if the user is NOT registered.
Hi all - I’m probably doing something stupid here, but why doesn’t this work?
<?php if($user != $site->user()): ?>when this works:
<?php if($user == $site->user()): ?>I want to show some content only if the user is NOT registered.
What is $user in this case?
It should be
if(!$site->user()) {
// do. stuff
}