flyalaska Posted July 21, 2014 Report Posted July 21, 2014 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> Quote
Tom Posted July 21, 2014 Report Posted July 21, 2014 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> 1 Quote
freshJet Posted July 21, 2014 Report Posted July 21, 2014 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. Quote
Tom Posted July 21, 2014 Report Posted July 21, 2014 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.