// Controller
$this->Session->read('Auth');
Pada Sabtu, 10 November 2012 7:48:39 UTC+7, thelee menulis:
>
> hello.im creating a website.i want to show the user name after they
> logged in and for those who dont register i want to leave any msg. when the
> user login it will show welcome "the user name" but when the user dont log
> in,it will be a error, can someone help me.
>
> here is the code
>
> <?php
> session_start();
>
> echo "Welcome ".$_SESSION['MM_Username'];
>
> else (isset($_SESSION['MM_Username'])) {
> echo "why you dont register?";
> }
> ?>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.