Use atkGetUser() outside nodes/modules
Appearance
|
ATK Howto: Use atkGetUser() outside nodes/modules
|
This HowTo describes how you can use getUser() outside a node or a module. I used this, for example, to display some information about the user on the welcome.php page.
$config_atkroot = "./";
include_once("atk.inc");
include_once("atk/skel/include.php");
// Now you can use getUser()
$user = getUser();
// If you want to do the same thing as me you will need an instance of the atkDb
$db = &atkGetDb();
Very short HowTo but very handy if you needed this. Took me some time to figure it out. I hope it helps.