Re: giving a session a name with variable value in it
>this seems not pretty nor correct, but you get an idea of my problem: Your right about pretty but I don't think its incorrect. I would pretty it up a bit by building and assigning the session variable name in a variable then using that in the Session->write method instead of trying to do it all in line. On Aug 31, 2:19 am, Tomfox Wiranata wrote: > so you thought it is a good idea to ask that in my thread? > > On 29 Aug., 20:05, Muthuvel Subramani wrote: > > > hi I want put some conditions for virtual fields.. can any one please give > > the syntax .. > > > thank you Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: giving a session a name with variable value in it
so you thought it is a good idea to ask that in my thread? On 29 Aug., 20:05, Muthuvel Subramani wrote: > hi I want put some conditions for virtual fields.. can any one please give > the syntax .. > > thank you Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: giving a session a name with variable value in it
hi I want put some conditions for virtual fields.. can any one please give the syntax .. thank you Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
giving a session a name with variable value in it
hi. i have a variable stored in a session: $this->Session->write('Link.Attachment.Count', $count); this is about uploaded attachments and i want to save the path for each attachment. lets say i want to save the 3rd attachment that was uploaded, then i wanna have this name for my session: $this->Session->write('Link.Attachment.3.path', valuexyz); so the number is related to the "'Link.Attachment.Count" value...but how do i code this? this seems not pretty nor correct, but you get an idea of my problem: $this->Session->write('Link.Attachment."$this->Session- >read('Link.Attachment.Count')".path; thx :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
giving a session a name with variable value in it
hi. i have a variable stored in a session: $this->Session->write('Link.Attachment.Count', $count); this is about uploaded attachments and i want to save the path for each attachment. lets say i want to save the 3rd attachment that was uploaded, then i wanna have this name for my session: $this->Session->write('Linkable.Attachment.3.path', valuexyz); so the number is related to the "'Link.Attachment.Count" value...but how do i code this? this seems not pretty nor correct, but you get an idea of my problem: $this->Session->write('Linkable.Attachment."$this->Session- >read('Link.Attachment.Count')".path; thx :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en