Jump to content

Recommended Posts

Posted

I know this should be pretty simple but I can't get it to work!

I've got this on my layout.tpl (it's part of the auth login code):

$pilotname = PilotData::GetPilotData(Auth::$userinfo->$firstname);

But it just shows blank - no errors or anything. Any ideas?

Posted

$pilotname = Auth::$userinfo->$firstname;

:)

Fatal error: Call to undefined method Auth::GetPilotData() in /home/freshje1/public_html/lib/skins/premiumseries/layout.tpl on line 77

Someone can't copy and paste?

Posted

Someone can't copy and paste?

Yes I posted the wrong error but yours doesn't work either:

Fatal error: Cannot access empty property in /home/freshje1/public_html/lib/skins/premiumseries/layout.tpl on line 79

What's the code to output it then? I used:

<?php echo $pilotname; ?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...