Re: Get post with comments

2013-01-09 Thread lowpass
On Wed, Jan 9, 2013 at 5:34 AM, Max Power wrote: > Hi, > > I want to paginate over posts which has some comments. That is, I want to > get from the database only those posts which has al least one comments and, > for each post, all the associated comments: The simplest way to handle this is to us

Re: Save Uploaded/Parsed File to Database Table

2013-01-09 Thread Karl Smith
Ok...I finally got the file to save in the file system correctly. Here is my code $filePath = WWW_ROOT.'/spreadsheet/' . DS . $uploadedFile['name'] ; move_uploaded_file($uploadedFile['tmp_name'], $filePath); Now I have to save the meta data associated with file as well as the file path. If I ne

Get post with comments

2013-01-09 Thread Max Power
Hi, I want to paginate over posts which has some comments. That is, I want to get from the database only those posts which has al least one comments and, for each post, all the associated comments: $post => array( [0] => array( Post, Comments => array( [0] => com

Re: jquery validation helper not working in 2.2.4

2013-01-09 Thread lowpass
On Tue, Jan 8, 2013 at 3:18 PM, vanessa v wrote: > I'm trying to use the jquery validation helper in my registration form but > looks like it is still validating server-side. You haven't said what the problem is. And what do you mean by "it is still validating server-side"? The helper itself is s

Re: Login Session content

2013-01-09 Thread Thiago Belem
Just to make it clear: AFAIK there's no "built-in" way of doing this (update the session when the user is saved) automatically, you need to do this on beforeSave or afterSave callbacks. []s -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --

Re: Login Session content

2013-01-09 Thread lowpass
On Wed, Jan 9, 2013 at 11:27 AM, thecosinus wrote: > Hi, > > Once my user is logged I get some infos from > $this->Session->read('Auth.User.Group.VARIABLE) > > How could i reload the Session after a user action so that the VARIABLE will > be up to date. $this->Session->write('Auth.User.Group.VARI

Re: Login Session content

2013-01-09 Thread Thiago Belem
You have to update/rewrite the session values when the Group/User is saved... AFAIK there's no "built-in" way of doing this. -- 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 Goog

Login Session content

2013-01-09 Thread thecosinus
Hi, Once my user is logged I get some infos from $this->Session->read('Auth.User.Group.VARIABLE) How could i reload the Session after a user action so that the VARIABLE will be up to date. Indeed my user need to log out and login back so that the VARIABLE is updated Thanks -- Like Us on Fa

Re: CakePHP & Facebook Session problems

2013-01-09 Thread Mathias R
hi, did you solved this problem? i have same error now and i don't know how to fix it. greetings m. Am Sonntag, 19. August 2012 00:38:19 UTC+2 schrieb ianjofriel: > > Hi > > Im currently developing an app in Cake 2.2.1, with Facebook integration > via the official Facebook SDK. > > When a user

Re: Session lost on redirect

2013-01-09 Thread Mathias R
Hi, did you find any help with this problem. i have the same issue now. Greetings m. Am Sonntag, 22. April 2012 18:59:45 UTC+2 schrieb vijay kumbhar: > > Hey, > > I have the same issue here. I am working on FB login with CakePHP 2.0 > & everything works perfect, but when i get the user details