CodeIgniter Forums
display username dx_auth - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: display username dx_auth (/showthread.php?tid=42181)



display username dx_auth - El Forum - 05-29-2011

[eluser]Paleleaves[/eluser]
Hi,

I'm using dx_auth and it's working fine. But how can I display username at header after login? And what does this line means in the library


Code:
$this->load->view($this->dx_auth->logged_in_view, $data);

thanks in advance.


display username dx_auth - El Forum - 05-30-2011

[eluser]Paleleaves[/eluser]
Sorry guys.. i solved that issue..

just put

Welcome <?php echo $this->dx_auth->get_username(); ?>

in your view file.