@Ogalov: The correct way to check if a user is logged in within the
view is:

$session->check('Auth.User.id');

The point is you are not wanting to read a value as you are not then
using the value, you simply want to check if it exists and perform
some other logic.  Jeremy gave you this answer and you decided to
modify your own solution (to something less flawed, but still flawed)
rather than use what he provided.  So my reply of

> Jeremy. thank for you answer.. (but I am going to ignore it)

Was FACT (with a hint of sarcasm), as I have seen a lot of people not
taking Jeremy's (and other's) advice of late.

It's great that you're learning CakePHP and we welcome you to the
group wholeheartedly, but when you ask for help and it is given try
using it.  It may not always work as those offering help can make
mistakes or misunderstand the question, but to ignore their answer and
continue to do your own thing is only going to increase the chances of
that person not helping you in the future.

HTH, Paul.

On Nov 8, 11:50 am, Ogalav <[email protected]> wrote:
> Jeremy, sorry but the Session->check no found it in the 'if else', i
> mean i use for read the user active that is all.
> i dont now why you say "rash of peaple doing it wrong"???.... or what
> said webbedit !!! have i take it as sarcasm???..
>
> I'm reading a lot of cake and I'm no expert .. but I'm getting better
> every day.
>
> thank you very much for your answers
>
> regards
>
> WebbeDIT what mean... (but I am going to ignore it)
>
> On 8 nov, 09:48, Jeremy Burns | Class Outfit
>
>
>
>
>
>
>
> <[email protected]> wrote:
> > Lately there seems to be a rash of people doing it wrong, ignoring good 
> > advice and then continuing to have problems (aka "Cake is buggy/rubbish").
>
> > Jeremy Burns
> > Class Outfit
>
> >http://www.classoutfit.com
>
> > On 8 Nov 2011, at 08:39, WebbedIT wrote:
>
> > >> Jeremy. thank for you answer.. (but I am going to ignore it)
>
> > > You've got to laugh, Paul
>
> > > --
> > > Our newest site for the community: CakePHP Video 
> > > Tutorialshttp://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp 
> > > others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this group 
> > > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to