Jump to content

Recommended Posts

Posted

I am trying to make a link click able that will take a pilot to their Public Profile from their dashboard, Every attempt has failed. Any ideas.

This is what I thought would work.

<a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">View My Public Profile</a>

Posted

From other pages around the site you should be using Auth::$userinfo

<a href="<?php echo url('/profile/view/'.Auth::$userinfo->pilotid);?>">View My Public Profile</a>

  • Like 1
Posted

From other pages around the site you should be using Auth::$userinfo

<a href="<?php echo url('/profile/view/'.Auth::$userinfo->pilotid);?>">View My Public Profile</a>

This is from the profile page, hence why I said $userinfo->pilotid.

Posted

This is from the profile page, hence why I said $userinfo->pilotid.

Oh I know, and for this question that's a perfectly reasonable solution. I just thought I'd give an additional answer which allows use on all pages, then there's no complaining when it's copy/pasted elsewhere :)

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...