I know how to get it in the view:
$u = new User();
$u->isLoggedIn();
How about the controller?
Error: Class 'Concrete\Package\PageRedirect\User' not found
I am using C5.7.
I know how to get it in the view:
$u = new User();
$u->isLoggedIn();
How about the controller?
Error: Class 'Concrete\Package\PageRedirect\User' not found
I am using C5.7.
(Posted solution on behalf of the OP).
http://documentation.concrete5.org/developers/users-groups/reading-data-existing-users
use Concrete\Core\User\User;
oruse User
.