flyalaska Posted July 21, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
freshJet Posted July 21, 2014 Report Share Posted July 21, 2014 Use $userinfo->pilotid instead 1 Quote Link to comment Share on other sites More sharing options...
Tom Posted July 21, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
freshJet Posted July 21, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
Tom Posted July 21, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
flyalaska Posted July 21, 2014 Author Report Share Posted July 21, 2014 Thank you! Works perfect. Quote Link to comment Share on other sites More sharing options...
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.