Re: Why isn't $this-Auth-user() passing all of the variables?

2013-03-18 Thread lowpass
Had you changed the table schema at some point? Try deleting the files
in app/tmp/cache/models if this is still happening.

On Thu, Mar 14, 2013 at 7:10 PM, Charley Bodkin char...@bodkin.me wrote:
 Some additional info: If a user logins in then logs out, the information is
 indeed pulled from the database. Just not on the first login.

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to cake-php+unsubscr...@googlegroups.com.
 To post to this group, send email to cake-php@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why isn't $this-Auth-user() passing all of the variables?

2013-03-17 Thread godjen99
Could you post your Auth component setup code?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why isn't $this-Auth-user() passing all of the variables?

2013-03-17 Thread Charley Bodkin
Would that be the UserController file?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why isn't $this-Auth-user() passing all of the variables?

2013-03-17 Thread godjen99
Normally it's setup in the AppControler, but it can be defined per 
controller as well.

You should have something set up like this - about half way down the page. Auth 
Docshttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Why isn't $this-Auth-user() passing all of the variables?

2013-03-14 Thread Charley Bodkin


Hey guys, I have a user stored in a database like so:

https://lh5.googleusercontent.com/-Vb3NWyidsDE/UUJG6txcDGI/ATs/hXRZMLGgS2E/s1600/phpmyadmin.1and1.com+%3A+db416743076.db.1and1.com+%3A+db416743076+%3A+users+%7C+phpMyAdmin+2.6.4-pl3.png
Now, in the AppController, I am trying to store whats in the table to a 
variable like this:

$this-set(currentUser, $this-Auth-user());  

My problem is that the only things beings passed are the facebook_id, the 
id, password, created and modified times, and nothing else like so:

https://lh4.googleusercontent.com/-DGL_tLfpQjs/UUJHiU-YNZI/AT0/L3KnviYUTYg/s1600/Screen+Shot+2013-03-14+at+5.56.18+PM.png

What's going on? Why aren't the first names, the last names, the emails, or 
any of the location data being passed? Any ideas?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why isn't $this-Auth-user() passing all of the variables?

2013-03-14 Thread Charley Bodkin
Some additional info: If a user logins in then logs out, the information is 
indeed pulled from the database. Just not on the first login.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.