Re: Creating custom report
What have you tried and where have you got stuck? 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: Header element not refreshing!!!
> If I change the URL from the addressbar and directly land to the page > information that are sending to the header element through the session are > not updating I'm confused what you mean by the above. Are you caching data and having problems or is this a user updating their profile and their session info is not being update? HTH Paul. 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: Find all Posts WITHOUT Tags (habtm)
Whenever it comes to wanting to order data by a count value or in your case search for things without a count value I always think it is best to store that value in the table and use counterCache. And thanks to the below you can also counter cache HABTM relationships: http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations HTH Paul. 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: Ajax problem ???
just wondering, I'm still on RC4 and working on switching over now. On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns wrote: > Yes. > > > Jeremy Burns > jeremybu...@me.com > > > On 25 May 2010, at 05:49, Ed Propsner wrote: > > @Jeremy: Are you on 1.3 stable ? > > > On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns wrote: > >> Interesting Ed - I find the display of error messages a bit hap-hazard too >> and thought it was just me. I can't add anything to this post yet, but I am >> watching with interest. >> >> Jeremy Burns >> jeremybu...@me.com >> >> >> On 25 May 2010, at 04:18, Ed Propsner wrote: >> >> I might be going out on a limb with this one but ... >> >> I recently started to experience the problem where my validation errors >> stopped displaying. >> I *may* know the cause but I haven't tested it out yet. >> >> When the form was validated $this->validationErrors array was loaded (with >> all appropriate errors) in the view but not rendering the errors. >> Would it still pass the array to the view if it had no intention on >> displaying or was the array simply passed along in case I wanted to use it? >> >> My Ajax requests are going through but the responses are not rendering. >> >> In both cases I was able to obtain a result manually by bypassing Cake. >> >> Could the two be related and I'm having some sort of rendering issue ? >> >> - Ed >> >> On Mon, May 24, 2010 at 8:16 PM, Ed Propsner wrote: >> >>> Just for the record I set up a test case in a different >>> controller/action/view and it didn't work there either, It does the same >>> thing. >>> >>> I've tried a lot of different things to no avail I'm fresh out of >>> ideas. >>> >>> >>> On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: >>> I'm not quite sure how this problem came about (that seems to be the common theme these days). I use $ajax->observeField to update an element in one of my forms. The form is was one of my originals and was working perfectly when i called it "completed." I came back to it to give everything a dry run and it's no longer working. The ajax request is being made but I'm not getting a response on all ajax requests on that page, not just one. The element only updates with the debug info and there are no errors. I would normally be inclined to think that something is not coded correctly (which still may be the case), but what I am 100% sure of is that it did work perfectly when I left it and since then I know for sure that I haven't touched, let alone changed anything in the actions or views for the ajax requests. The helpers are all the same in the appcontroller as well, nothing changed there. Everything looks to be in place, I'm not sure where else to look. What could have changed? - Ed >>> >>> >> >> 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 >> >> >> >> 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.comFor >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > > 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 > > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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@googlegrou
Re: Ajax problem ???
Yes. Jeremy Burns jeremybu...@me.com On 25 May 2010, at 05:49, Ed Propsner wrote: > @Jeremy: Are you on 1.3 stable ? > > > On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns wrote: > Interesting Ed - I find the display of error messages a bit hap-hazard too > and thought it was just me. I can't add anything to this post yet, but I am > watching with interest. > > Jeremy Burns > jeremybu...@me.com > > > On 25 May 2010, at 04:18, Ed Propsner wrote: > >> I might be going out on a limb with this one but ... >> >> I recently started to experience the problem where my validation errors >> stopped displaying. >> I *may* know the cause but I haven't tested it out yet. >> >> When the form was validated $this->validationErrors array was loaded (with >> all appropriate errors) in the view but not rendering the errors. >> Would it still pass the array to the view if it had no intention on >> displaying or was the array simply passed along in case I wanted to use it? >> >> My Ajax requests are going through but the responses are not rendering. >> >> In both cases I was able to obtain a result manually by bypassing Cake. >> >> Could the two be related and I'm having some sort of rendering issue ? >> >> - Ed >> >> On Mon, May 24, 2010 at 8:16 PM, Ed Propsner wrote: >> Just for the record I set up a test case in a different >> controller/action/view and it didn't work there either, It does the same >> thing. >> >> I've tried a lot of different things to no avail I'm fresh out of >> ideas. >> >> >> On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: >> I'm not quite sure how this problem came about (that seems to be the common >> theme these days). >> >> I use $ajax->observeField to update an element in one of my forms. >> The form is was one of my originals and was working perfectly when i called >> it "completed." >> >> I came back to it to give everything a dry run and it's no longer working. >> The ajax request is being made but I'm not getting a response on all ajax >> requests on that page, not just one. >> The element only updates with the debug info and there are no errors. >> I would normally be inclined to think that something is not coded correctly >> (which still may be the case), >> but what I am 100% sure of is that it did work perfectly when I left it and >> since then I know for sure >> that I haven't touched, let alone changed anything in the actions or views >> for the ajax requests. >> >> The helpers are all the same in the appcontroller as well, nothing changed >> there. >> >> Everything looks to be in place, I'm not sure where else to look. >> What could have changed? >> >> - Ed >> >> >> >> 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 > > > 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 > > > 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 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: Ajax problem ???
@Jeremy: Are you on 1.3 stable ? On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns wrote: > Interesting Ed - I find the display of error messages a bit hap-hazard too > and thought it was just me. I can't add anything to this post yet, but I am > watching with interest. > > Jeremy Burns > jeremybu...@me.com > > > On 25 May 2010, at 04:18, Ed Propsner wrote: > > I might be going out on a limb with this one but ... > > I recently started to experience the problem where my validation errors > stopped displaying. > I *may* know the cause but I haven't tested it out yet. > > When the form was validated $this->validationErrors array was loaded (with > all appropriate errors) in the view but not rendering the errors. > Would it still pass the array to the view if it had no intention on > displaying or was the array simply passed along in case I wanted to use it? > > My Ajax requests are going through but the responses are not rendering. > > In both cases I was able to obtain a result manually by bypassing Cake. > > Could the two be related and I'm having some sort of rendering issue ? > > - Ed > > On Mon, May 24, 2010 at 8:16 PM, Ed Propsner wrote: > >> Just for the record I set up a test case in a different >> controller/action/view and it didn't work there either, It does the same >> thing. >> >> I've tried a lot of different things to no avail I'm fresh out of >> ideas. >> >> >> On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: >> >>> I'm not quite sure how this problem came about (that seems to be the >>> common theme these days). >>> >>> I use $ajax->observeField to update an element in one of my forms. >>> The form is was one of my originals and was working perfectly when i >>> called it "completed." >>> >>> I came back to it to give everything a dry run and it's no longer >>> working. >>> The ajax request is being made but I'm not getting a response on all ajax >>> requests on that page, not just one. >>> The element only updates with the debug info and there are no errors. >>> I would normally be inclined to think that something is not coded >>> correctly (which still may be the case), >>> but what I am 100% sure of is that it did work perfectly when I left it >>> and since then I know for sure >>> that I haven't touched, let alone changed anything in the actions or >>> views for the ajax requests. >>> >>> The helpers are all the same in the appcontroller as well, nothing >>> changed there. >>> >>> Everything looks to be in place, I'm not sure where else to look. >>> What could have changed? >>> >>> - Ed >>> >> >> > > 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 > > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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: Ajax problem ???
Interesting Ed - I find the display of error messages a bit hap-hazard too and thought it was just me. I can't add anything to this post yet, but I am watching with interest. Jeremy Burns jeremybu...@me.com On 25 May 2010, at 04:18, Ed Propsner wrote: > I might be going out on a limb with this one but ... > > I recently started to experience the problem where my validation errors > stopped displaying. > I *may* know the cause but I haven't tested it out yet. > > When the form was validated $this->validationErrors array was loaded (with > all appropriate errors) in the view but not rendering the errors. > Would it still pass the array to the view if it had no intention on > displaying or was the array simply passed along in case I wanted to use it? > > My Ajax requests are going through but the responses are not rendering. > > In both cases I was able to obtain a result manually by bypassing Cake. > > Could the two be related and I'm having some sort of rendering issue ? > > - Ed > > On Mon, May 24, 2010 at 8:16 PM, Ed Propsner wrote: > Just for the record I set up a test case in a different > controller/action/view and it didn't work there either, It does the same > thing. > > I've tried a lot of different things to no avail I'm fresh out of ideas. > > > On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: > I'm not quite sure how this problem came about (that seems to be the common > theme these days). > > I use $ajax->observeField to update an element in one of my forms. > The form is was one of my originals and was working perfectly when i called > it "completed." > > I came back to it to give everything a dry run and it's no longer working. > The ajax request is being made but I'm not getting a response on all ajax > requests on that page, not just one. > The element only updates with the debug info and there are no errors. > I would normally be inclined to think that something is not coded correctly > (which still may be the case), > but what I am 100% sure of is that it did work perfectly when I left it and > since then I know for sure > that I haven't touched, let alone changed anything in the actions or views > for the ajax requests. > > The helpers are all the same in the appcontroller as well, nothing changed > there. > > Everything looks to be in place, I'm not sure where else to look. > What could have changed? > > - Ed > > > > 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 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: Find all Posts WITHOUT Tags (habtm)
SELECT po.*, tg.* FROM `posts` po left join`tags_posts` tg on po.id = tg.post_id where tg.tag_id is null; Make a view(db view not MVC) out of it and call it from cake 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
Plugins i18n trouble
Hi mates, I have an problem with i18n I have an plugins called project inside has locale folder with eng and spa languages in my user view I write the following input('username', array('label' => __d('project','Username',true))); ?> in my before filter from ProjectAppController: $locale="es" Configure::write('Config.language', $locale); setlocale(LC_ALL, $locale .'UTF8', $locale .'UTF-8', $locale, 'eng.UTF8', 'eng.UTF-8', 'eng', 'en_US'); but nothing is happening can't see the spanish translation for my site, may be I am doing something wrong, the cakephp version is 1.3 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: Ajax problem ???
I might be going out on a limb with this one but ... I recently started to experience the problem where my validation errors stopped displaying. I *may* know the cause but I haven't tested it out yet. When the form was validated $this->validationErrors array was loaded (with all appropriate errors) in the view but not rendering the errors. Would it still pass the array to the view if it had no intention on displaying or was the array simply passed along in case I wanted to use it? My Ajax requests are going through but the responses are not rendering. In both cases I was able to obtain a result manually by bypassing Cake. Could the two be related and I'm having some sort of rendering issue ? - Ed On Mon, May 24, 2010 at 8:16 PM, Ed Propsner wrote: > Just for the record I set up a test case in a different > controller/action/view and it didn't work there either, It does the same > thing. > > I've tried a lot of different things to no avail I'm fresh out of > ideas. > > > On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: > >> I'm not quite sure how this problem came about (that seems to be the >> common theme these days). >> >> I use $ajax->observeField to update an element in one of my forms. >> The form is was one of my originals and was working perfectly when i >> called it "completed." >> >> I came back to it to give everything a dry run and it's no longer >> working. >> The ajax request is being made but I'm not getting a response on all ajax >> requests on that page, not just one. >> The element only updates with the debug info and there are no errors. >> I would normally be inclined to think that something is not coded >> correctly (which still may be the case), >> but what I am 100% sure of is that it did work perfectly when I left it >> and since then I know for sure >> that I haven't touched, let alone changed anything in the actions or views >> for the ajax requests. >> >> The helpers are all the same in the appcontroller as well, nothing changed >> there. >> >> Everything looks to be in place, I'm not sure where else to look. >> What could have changed? >> >> - Ed >> > > 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: Find all Posts WITHOUT Tags (habtm)
I alredy asked it here. Never find an answer. Im doing same way you do. 2 querys. Not even with pure sql i count do it in 1 query... still wonder if its some way to do it in a cake way. -- Renato de Freitas Freire ren...@morfer.org On Mon, May 24, 2010 at 11:55 AM, designv...@gmail.com wrote: > Hi All, > > I'm currently finding all Posts without Tags by querying the join > table and getting the unique Post id's then using them in a second > query on the Posts table to find all Posts with an id NOT in the first > array. > > What I was wondering is if there was a neater/caker way of doing this? > > d. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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: How do I save a field on my User without breaking the ACL?
I tried that and have the same result. Do I need to unbind a relationship or something? On Mon, May 24, 2010 at 2:06 PM, Filipe Teles Rodrigues < filipe.t2...@gmail.com> wrote: > I use $this->User->save($this->data) instead of saveField. > > 2010/5/24 Jon Chin > >> I'm using Auth and db ACL, but I have an action that screws up my ACL >> records every time. I have ACL set up just like the Book instructs. I'm >> building a "change password" page where I want to just update the password. >> I run the following commands: >> $this->User->id = $this->Session->read('Auth.User.id'); >> $this->User->saveField('password', $this->data['User']['password']); >> (I've also tried $this->User->save()). When I execute this, it deletes >> the user's parent_id from the aros table as well as corrupts the tree-ness >> of the ACL tables. What am I doing wrong? Thanks in advance. >> >> 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.comFor >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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: Ajax problem ???
Just for the record I set up a test case in a different controller/action/view and it didn't work there either, It does the same thing. I've tried a lot of different things to no avail I'm fresh out of ideas. On Mon, May 24, 2010 at 2:28 PM, Ed Propsner wrote: > I'm not quite sure how this problem came about (that seems to be the common > theme these days). > > I use $ajax->observeField to update an element in one of my forms. > The form is was one of my originals and was working perfectly when i called > it "completed." > > I came back to it to give everything a dry run and it's no longer working. > The ajax request is being made but I'm not getting a response on all ajax > requests on that page, not just one. > The element only updates with the debug info and there are no errors. > I would normally be inclined to think that something is not coded correctly > (which still may be the case), > but what I am 100% sure of is that it did work perfectly when I left it and > since then I know for sure > that I haven't touched, let alone changed anything in the actions or views > for the ajax requests. > > The helpers are all the same in the appcontroller as well, nothing changed > there. > > Everything looks to be in place, I'm not sure where else to look. > What could have changed? > > - Ed > 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: How do I save a field on my User without breaking the ACL?
I use $this->User->save($this->data) instead of saveField. 2010/5/24 Jon Chin > I'm using Auth and db ACL, but I have an action that screws up my ACL > records every time. I have ACL set up just like the Book instructs. I'm > building a "change password" page where I want to just update the password. > I run the following commands: > $this->User->id = $this->Session->read('Auth.User.id'); > $this->User->saveField('password', $this->data['User']['password']); > (I've also tried $this->User->save()). When I execute this, it deletes the > user's parent_id from the aros table as well as corrupts the tree-ness of > the ACL tables. What am I doing wrong? Thanks in advance. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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: Header element not refreshing!!!
Any body please? I turn of the cache as well but still needs to reload the page to see the correct data!!! sherzo wrote: > > Hi All > > I have a strange problem with refreshing the sessions inside my header > which is an element loaded in my page! > > If I change the URL from the addressbar and directly land to the page > information that are sending to the header element through the session are > not updating i have to use F5 to see the correct session value!!! > > Thanks in advanced > > Sherry > -- View this message in context: http://old.nabble.com/Header-element-not-refreshing%21%21%21-tp28654116p28661355.html Sent from the CakePHP mailing list archive at Nabble.com. 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
Ajax problem ???
I'm not quite sure how this problem came about (that seems to be the common theme these days). I use $ajax->observeField to update an element in one of my forms. The form is was one of my originals and was working perfectly when i called it "completed." I came back to it to give everything a dry run and it's no longer working. The ajax request is being made but I'm not getting a response on all ajax requests on that page, not just one. The element only updates with the debug info and there are no errors. I would normally be inclined to think that something is not coded correctly (which still may be the case), but what I am 100% sure of is that it did work perfectly when I left it and since then I know for sure that I haven't touched, let alone changed anything in the actions or views for the ajax requests. The helpers are all the same in the appcontroller as well, nothing changed there. Everything looks to be in place, I'm not sure where else to look. What could have changed? - Ed 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
How do I save a field on my User without breaking the ACL?
I'm using Auth and db ACL, but I have an action that screws up my ACL records every time. I have ACL set up just like the Book instructs. I'm building a "change password" page where I want to just update the password. I run the following commands: $this->User->id = $this->Session->read('Auth.User.id'); $this->User->saveField('password', $this->data['User']['password']); (I've also tried $this->User->save()). When I execute this, it deletes the user's parent_id from the aros table as well as corrupts the tree-ness of the ACL tables. What am I doing wrong? Thanks in advance. 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
Find all Posts WITHOUT Tags (habtm)
Hi All, I'm currently finding all Posts without Tags by querying the join table and getting the unique Post id's then using them in a second query on the Posts table to find all Posts with an id NOT in the first array. What I was wondering is if there was a neater/caker way of doing this? d. 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
Creating custom report
I am new to cakephp and the mvc architecture,i want to create a simple reporting form which allows me to query a table of users to know how many users were created at a specific time frame sample table below. CREATE TABLE IF NOT EXISTS `authake_users` ( `id` int(10) unsigned NOT NULL auto_increment, `login` varchar(32) NOT NULL, `password` varchar(50) NOT NULL, `email` varchar(128) NOT NULL, `created` datetime default NULL, `updated` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=39 ; please can any one show me how to go about this? 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
Routes
Hello pals, I can't really figure out one thing about Routes.. My url is something like localhost/acme/mycontroller/myaction.. my question is how can I remap the previous url in something like localhost/mycontroller/myaction using route? I ve added the following line in routes.php Router::connect('/:alias/:controller/:action', array(), array( 'alias', '[a-zA-z0-9]+') ); but it dosen't seem really work.. thanks in advance -- Emanuele Gringeri Computer Engineer University of Pisa Be my mirror, my sword and shield 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: Pagination ordered by a field that is not in the table
I like these ideas, but the solution should be simpler than this. If I had written: }else{ //line 1021 $options['order'][$field] = $value; } the ordering in pagination should work correctly. The only objective of that code in the other email is to avoid sql injections, because $value will be concatenated in the query like: " ORDER BY model.$value ...". In my opinion, Cake should handle this automatically. Thank you 2010/5/22 WebbedIT > If you are regularly sorting fields by aggregate values then it may be > a lot more efficient to add those as real fields into the database > which are calculated afterSave and afterDelete as will save a lot of > extra database work in the long run. > > HTH > > Paul. > > 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.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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: Session Problem with Auth
I am able to log in. the problem is solved by changing following setting in core.php Configure::write('Session.checkAgent', false); thanks for your response. On May 24, 4:00 pm, John Andersen wrote: > Can you log in? > Enjoy, > John > > On May 24, 1:49 pm, Hussain wrote: > > > > > > > I am developing application cakephp 1.2.7. For that there are > > different user level. > > for different users I have added code in users controller > > $users = $this->Session->read('Auth.User'); > > //print_r($users); > > $user_type = $users['group_id']; > > $group =$user_type; > > if($group==1){ > > $this->layout ='admin'; > > > } > > if($group==2){ > > $this->layout = 'manager'; > > > } > > else{ > > $this->layout = 'default'; > > } > > while i am not getting info about user from Auth session. each time > > its empty and layout i am getting is default. > > Can anybody help me regarding this? > > thanks in advance > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 > > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://groups.google.com/group/cake-php?hl=en 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: Session Problem with Auth
Can you log in? Enjoy, John On May 24, 1:49 pm, Hussain wrote: > I am developing application cakephp 1.2.7. For that there are > different user level. > for different users I have added code in users controller > $users = $this->Session->read('Auth.User'); > //print_r($users); > $user_type = $users['group_id']; > $group =$user_type; > if($group==1){ > $this->layout ='admin'; > > } > if($group==2){ > $this->layout = 'manager'; > > } > else{ > $this->layout = 'default'; > } > while i am not getting info about user from Auth session. each time > its empty and layout i am getting is default. > Can anybody help me regarding this? > thanks in advance > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://groups.google.com/group/cake-php?hl=en 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
Session Problem with Auth
I am developing application cakephp 1.2.7. For that there are different user level. for different users I have added code in users controller $users = $this->Session->read('Auth.User'); //print_r($users); $user_type = $users['group_id']; $group =$user_type; if($group==1){ $this->layout ='admin'; } if($group==2){ $this->layout = 'manager'; } else{ $this->layout = 'default'; } while i am not getting info about user from Auth session. each time its empty and layout i am getting is default. Can anybody help me regarding this? thanks in advance 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
How to use fileupload component to replace a file with a newer version
Hi, I'm using this fileupload component (http://bakery.cakephp.org/ articles/view/file-upload-component-w-automagic-model-optional) on my site to manage my PDF files. I can upload and remove PDF files. But now I'm wondering how I could replace an already uploaded PDF with a newer version. What I've done so far: I've set the component to use my 'doc'-model. I created a docs controller and made an edit action. The view for that edit action is a form where they can just select a new version of the PDF they wish to update. The problem is that I can't remove the old version of the PDF that has been selected for update, before uploading the new version. To further explain the purpose of this: It's for a tennis website and I use a PDF to show the schedule of play. Hope you guys can help me ^^ 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: puzzle over activity
I commented out $this->Auth->authorize = 'controller'; in the app_controller.php, and it suddenly works? Why is this, when i have $this->Auth->allow('*'); ? i.s. On Mon, May 24, 2010 at 3:29 PM, Iqbal Santyaswardan wrote: > I set the debug to 2, and removed the ajax stuff (really not that many). > It gives "Failed to load source for: http://localhost/myapp/activities"; > > i.s. > > On Mon, May 24, 2010 at 3:16 PM, Jeremy Burns wrote: >> Do you have debug set to 2? If it's at 0 you often won't see an error, just >> a blank page. >> >> Jeremy Burns >> jeremybu...@me.com >> >> >> On 24 May 2010, at 09:12, Iqbal Santyaswardan wrote: >> >>> Hi there, >>> >>> First of all, sorry about the subject line, I couldn't think of one >>> more appropriate. >>> >>> My situation is this: I have an app using ajax running with no >>> (visible) errors that I wanted to add an activity record to it (for >>> example if a user signs up). So I baked a model: >>> class Activity extends AppModel { >>> >>> var $name = 'Activity'; >>> var $validate = array( >>> 'user_id' => array('numeric') >>> ); >>> } >>> >>> And a controller using scaffolding: >>> class ActivitiesController extends AppController { >>> >>> var $name = 'Activities'; >>> var $scaffold; >>> >>> } >>> >>> And some views (index, view, edit, delete) >>> >>> Suddenly, the app stopped working. It just throws a blank page. So i >>> tried using a fresh install of cakephp, but using the same database. >>> Nothing was broken. >>> >>> Inspecting the response header I get inside my app, it reads: >>> >>> "Failed to load source for: http://localhost/myapp/activities"; >>> >>> What could be the problem? >>> >>> Regards, >>> i.s. >>> >>> 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 >> >> 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 >> > 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: Find('list') and setting option values
Try the following: $states = $this->Location->find('list', array( 'fields' =>array('Location.state', 'Location.state'), 'group' => array('Location.state') )); Paul 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: Action, called by an Ajax request, running twice.
I had weird problems with ajax calls happening twice (when deleting a record in a modalbox). I'm pretty certain it came down to using FireBug for me which sometimes, but not all the time, reloads the request to get some extra information. Paul. 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: puzzle over activity
I set the debug to 2, and removed the ajax stuff (really not that many). It gives "Failed to load source for: http://localhost/myapp/activities"; i.s. On Mon, May 24, 2010 at 3:16 PM, Jeremy Burns wrote: > Do you have debug set to 2? If it's at 0 you often won't see an error, just a > blank page. > > Jeremy Burns > jeremybu...@me.com > > > On 24 May 2010, at 09:12, Iqbal Santyaswardan wrote: > >> Hi there, >> >> First of all, sorry about the subject line, I couldn't think of one >> more appropriate. >> >> My situation is this: I have an app using ajax running with no >> (visible) errors that I wanted to add an activity record to it (for >> example if a user signs up). So I baked a model: >> class Activity extends AppModel { >> >> var $name = 'Activity'; >> var $validate = array( >> 'user_id' => array('numeric') >> ); >> } >> >> And a controller using scaffolding: >> class ActivitiesController extends AppController { >> >> var $name = 'Activities'; >> var $scaffold; >> >> } >> >> And some views (index, view, edit, delete) >> >> Suddenly, the app stopped working. It just throws a blank page. So i >> tried using a fresh install of cakephp, but using the same database. >> Nothing was broken. >> >> Inspecting the response header I get inside my app, it reads: >> >> "Failed to load source for: http://localhost/myapp/activities"; >> >> What could be the problem? >> >> Regards, >> i.s. >> >> 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 > > 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 > 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: puzzle over activity
Do you have debug set to 2? If it's at 0 you often won't see an error, just a blank page. Jeremy Burns jeremybu...@me.com On 24 May 2010, at 09:12, Iqbal Santyaswardan wrote: > Hi there, > > First of all, sorry about the subject line, I couldn't think of one > more appropriate. > > My situation is this: I have an app using ajax running with no > (visible) errors that I wanted to add an activity record to it (for > example if a user signs up). So I baked a model: > class Activity extends AppModel { > > var $name = 'Activity'; > var $validate = array( > 'user_id' => array('numeric') > ); > } > > And a controller using scaffolding: > class ActivitiesController extends AppController { > > var $name = 'Activities'; > var $scaffold; > > } > > And some views (index, view, edit, delete) > > Suddenly, the app stopped working. It just throws a blank page. So i > tried using a fresh install of cakephp, but using the same database. > Nothing was broken. > > Inspecting the response header I get inside my app, it reads: > > "Failed to load source for: http://localhost/myapp/activities"; > > What could be the problem? > > Regards, > i.s. > > 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 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: Multi-client application
The performance issue regarding the data volume should be solved within the database. For example use partitioning to speed your queries even if you have table with 1Milion records. Although I prefer separated database for each client there is a big debate about it in the SaaS community. Branding is an issue because if you have totally different look for every client it will be simple to use separate installation for every client. Then the db connection is not an issue any more. The cakephp code base is very small so storage is not an issue also. The only issue is how to keep all sites on the same version. In this case you can use tools like rsync to update all sites. You also can share cake folder for all sites on the same server. There is also benefits to this approach like having a test group of clients and not applying changes to all users at once. And of course the legal point, you can't write a bug that let one client see another client data. Remember even google had this kind of bug in google documents. You can use openid to unify users management. On Mon, May 24, 2010 at 10:22 AM, Heidi Grab wrote: > Hi Zaky, > > I'm sorry, I'm a bit lazy of typing, so please allow me to shorten the > longer e-mail I already wrote to the list about the nature of my > problem (see below, the e-mail you quoted). Essentially, it is a > mixture of legal issues, contract issues and a bit personal concern > about the DB performance. > > How I am going to update the database... well, I'm not sure what you > are getting at. I'm updating the database using cakephp - you didn't > mean that, did you? > > SaaS solution: yes, of course. If it wasn't, I would not have the > problem with separate client databases, but one config file. > > branding capabilities: I think, this is not an issue if they want it > or not. The real issue is, that in a model file in cakephp I specify > which database cakephp should use, and I don't know if there is a > cakephp way to change the database configuration "on the fly". Rick > suggested, there is. I may try to set the > $customer member of the DATABASE_CONFIG class with the correct > database settings. So, I will try that. :) > > All the best, > Heidi. > > On Sun, May 23, 2010 at 12:05 PM, Zaky Katalan-Ezra > wrote: > > You can also create a central database and clients databases where you > > replicate central database tables with replication or federated tables, > or > > even views if all databases are on the same server, in each client > database. > > The question is what do you trying to avoid with your design? > > What is your problem? > > How you are going to update the central database? > > Is it a SaaS solution? > > Do you need branding capabilities for each client? different logo, > images, > > icons, color scheme > > > > You got several solutions which are all good in different circumstances > > > > > > > > On Sun, May 23, 2010 at 11:13 AM, rikdc wrote: > >> > >> Hi Heidi, > >> > >> It's much simpler than that :) I use a centralised database and a > >> client database, and good use of the $useDbConfig member variable for > >> the Model classes, and I didn't go down the route of changing > >> connections on the fly either. > >> > >> Models that use the central database use the 'default' settings, and > >> models that use the bespoke one use the 'customer' settings. I use the > >> hostname (client.mydomain.com) to identify each client, and set the > >> $customer member of the DATABASE_CONFIG class with the correct > >> database settings. This all happens before the user has logged in. > >> > >> Hope this helps, > >> Richard > >> > >> > >> On May 22, 9:32 pm, Heidi Grab wrote: > >> > Hi there, > >> > > >> > thanks Rick and Paul for your suggestions. There are some reasons why > >> > I think putting all clients in one db setup is a bad idea: > >> > > >> > - legal issues; for instance, one of my clients is from Poland. I am > >> > obliged by Polish law to save data from this company on a polish > >> > server, I would not be allowed to save the company data on a server > >> > outside of Poland; there are other countries and clients where this > >> > restrictions apply. Since I cannot have a database that is hosted at > >> > the same time in two different countries, I need to use two different > >> > hosts. > >> > > >> > - contract issues; some companies just want their data not be put in > >> > one database with data from other companies, and will only sign a > >> > contract if I can make sure of this. > >> > > >> > - size of data: also, companies put app. 400 new entries per day/5 > >> > days a week into the database; starting with 10 clients, this means > >> > 4000 new entries a day, 80.000 new entries a month. This will slow > >> > queries down - since I have to keep even the old data in the database > >> > for now, I think it is better for performance reasons to have a > >> > per-client database. > >> > > >> > There may cases where two companys from the same group of companie
puzzle over activity
Hi there, First of all, sorry about the subject line, I couldn't think of one more appropriate. My situation is this: I have an app using ajax running with no (visible) errors that I wanted to add an activity record to it (for example if a user signs up). So I baked a model: class Activity extends AppModel { var $name = 'Activity'; var $validate = array( 'user_id' => array('numeric') ); } And a controller using scaffolding: class ActivitiesController extends AppController { var $name = 'Activities'; var $scaffold; } And some views (index, view, edit, delete) Suddenly, the app stopped working. It just throws a blank page. So i tried using a fresh install of cakephp, but using the same database. Nothing was broken. Inspecting the response header I get inside my app, it reads: "Failed to load source for: http://localhost/myapp/activities"; What could be the problem? Regards, i.s. 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: Database Connection from another pc by IP Address.
Hi Heldl Grab, Acually i want to use remote database access by this configuration...how i can configure?My remote pc id such : http://192.168.1.12/ MY Localhost config such: class DATABASE_CONFIG { var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '', 'database' => 'market', 'port'=>'', 'prefix' => '', ); On May 24, 2:42 pm, Heidi Grab wrote: > Hi Arif, > > I may not have understood. Did you try to enter the "other pc" as host > in the config file? > > All the best, > Heidi. > > > > On Mon, May 24, 2010 at 9:13 AM, arif hossen wrote: > > Dear All, > > > I need cakephp database connection from another PC , Now currently i use > > lampp, I need database connection from another pc. > > Pls help me. How i can connect database from another pc in my lampp server. > > > -- > > Regards, > > Mohammad Arif Hossen > > Software Enginner at > > Epsilon Consulting and Development Services(ECDS) > >www.ecds-tech.com > > +88 01714355911 > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://groups.google.com/group/cake-php?hl=en 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: Database Connection from another pc by IP Address.
Hi Arif, I may not have understood. Did you try to enter the "other pc" as host in the config file? All the best, Heidi. On Mon, May 24, 2010 at 9:13 AM, arif hossen wrote: > Dear All, > > I need cakephp database connection from another PC , Now currently i use > lampp, I need database connection from another pc. > Pls help me. How i can connect database from another pc in my lampp server. > > -- > Regards, > Mohammad Arif Hossen > Software Enginner at > Epsilon Consulting and Development Services(ECDS) > www.ecds-tech.com > +88 01714355911 > > 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 > 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
HABTM, LEFT JOIN and cakephp
Hi there, that's for the cakephp professionals among you, which hopefully you all are. ;-) I have three tables: agents (keeps information of the call-center agents using the application) branches (keeps information on the branches the agent works for, which may be several or just one) agents_branches (for joining the two together) In the model, the HABTM relationship is defined accordingly. To get a list of agents that are not assigned to any branch, I need the following code: SELECT * FROM `agents` LEFT JOIN agents_branches ON agents_branches.agent_id = agents.id WHERE agents_branches.agent_id IS NULL When I do $this->Branch->query($myQuery), this works fine. However, I want to do it "the cake way" and not use the direct query, if possible. However, I don't know how. A normal find will give me all agents and all branches. When I set a condition, cakephp doesn't use agents_branches anymore, and puts out an error, because it cannot find a column agents_branches.agent_id. Can anyone help me? All the best, Heidi. 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
SimpleDB and cakephp
Hi there, has anyone experience with writing an Amazon SimpleDB dbo driver for cakephp? Seems a bit tricky, since there are no JOINs. However, one could do several queries and paste them together in one array, I suppose. Would this work with cakephp, or does it break some concept of cakephp I may not be aware of? Any experiences and ideas are welcome. All the best, Heidi. 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: my link looks like this app/webroot/index.php/
Do you have the .htaccess files in your system and is mod_rewrite turned on? Enjoy, John On May 24, 4:57 am, Davor Ilic wrote: > Hi all, > > can anybody help me out of this issue my link loosk like this: > > > $ui_Url): ?> > > > link($naviName, > array('controller'=>'clients','action'=>$Url), > array('class'=>'gpFloatLeft') > ) ?> > > > > > > > > > did i do anything wrong. i get always this url url from link " > exemple.cc/app/webroot/index.php/" instead of "exemple.cc/index" > and dont know why... > > 2010/5/20 Davor Ilic > > > > > have anyone this problem exept me :) ? And found some solution then please > > help me out. > > > 2010/5/19 Davor Ilic > > > Hi All, > > >> i have the problem if i use from helpers the "$html->link" i get this > >> link app/webroot/index.php/ and i do not know why because i didn´t change > >> anything. > >> i changed only the routers.php to this "Router::connect('/', > >> array('controller' => 'clients', 'action' => 'index'));" > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://groups.google.com/group/cake-php?hl=en 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: Multi-client application
Hi Zaky, I'm sorry, I'm a bit lazy of typing, so please allow me to shorten the longer e-mail I already wrote to the list about the nature of my problem (see below, the e-mail you quoted). Essentially, it is a mixture of legal issues, contract issues and a bit personal concern about the DB performance. How I am going to update the database... well, I'm not sure what you are getting at. I'm updating the database using cakephp - you didn't mean that, did you? SaaS solution: yes, of course. If it wasn't, I would not have the problem with separate client databases, but one config file. branding capabilities: I think, this is not an issue if they want it or not. The real issue is, that in a model file in cakephp I specify which database cakephp should use, and I don't know if there is a cakephp way to change the database configuration "on the fly". Rick suggested, there is. I may try to set the $customer member of the DATABASE_CONFIG class with the correct database settings. So, I will try that. :) All the best, Heidi. On Sun, May 23, 2010 at 12:05 PM, Zaky Katalan-Ezra wrote: > You can also create a central database and clients databases where you > replicate central database tables with replication or federated tables, or > even views if all databases are on the same server, in each client database. > The question is what do you trying to avoid with your design? > What is your problem? > How you are going to update the central database? > Is it a SaaS solution? > Do you need branding capabilities for each client? different logo, images, > icons, color scheme > > You got several solutions which are all good in different circumstances > > > > On Sun, May 23, 2010 at 11:13 AM, rikdc wrote: >> >> Hi Heidi, >> >> It's much simpler than that :) I use a centralised database and a >> client database, and good use of the $useDbConfig member variable for >> the Model classes, and I didn't go down the route of changing >> connections on the fly either. >> >> Models that use the central database use the 'default' settings, and >> models that use the bespoke one use the 'customer' settings. I use the >> hostname (client.mydomain.com) to identify each client, and set the >> $customer member of the DATABASE_CONFIG class with the correct >> database settings. This all happens before the user has logged in. >> >> Hope this helps, >> Richard >> >> >> On May 22, 9:32 pm, Heidi Grab wrote: >> > Hi there, >> > >> > thanks Rick and Paul for your suggestions. There are some reasons why >> > I think putting all clients in one db setup is a bad idea: >> > >> > - legal issues; for instance, one of my clients is from Poland. I am >> > obliged by Polish law to save data from this company on a polish >> > server, I would not be allowed to save the company data on a server >> > outside of Poland; there are other countries and clients where this >> > restrictions apply. Since I cannot have a database that is hosted at >> > the same time in two different countries, I need to use two different >> > hosts. >> > >> > - contract issues; some companies just want their data not be put in >> > one database with data from other companies, and will only sign a >> > contract if I can make sure of this. >> > >> > - size of data: also, companies put app. 400 new entries per day/5 >> > days a week into the database; starting with 10 clients, this means >> > 4000 new entries a day, 80.000 new entries a month. This will slow >> > queries down - since I have to keep even the old data in the database >> > for now, I think it is better for performance reasons to have a >> > per-client database. >> > >> > There may cases where two companys from the same group of companies >> > are willing to put their data into one db setup, but this will rarely, >> > if ever, be the case. >> > >> > That said, I think that I'm with Rick's approach. Rick - could you >> > elaborate a bit on how you did this? Did I get you right - you had to >> > compile your own cakephp shell for this? >> > >> > I like cakephp a lot - I am just not sure if I am going to be able to >> > realize the setup I need with it; so I'd really appreciate some >> > hands-on advice on how to do this. >> > >> > Most probably, I will have to be able to change the database >> > configuration "on the fly" in the users controller. Once a user logs >> > in, I have to find out what database connection holds the company >> > data, and change the model accordingly. Right? Well, how would you do >> > it? >> > >> > All the best, >> > Heidi. >> > >> > >> > >> > On Sat, May 22, 2010 at 12:30 PM, rikdc wrote: >> > > Hi, >> > >> > > The configuration that you suggest is not as unmaintainable as Paul >> > > might have been implying - but he does suggest the simplest and most >> > > logical approach. >> > >> > > Some of the systems I've developed saw me at this cross road, and >> > > there was always the concerned with Security issues of cross-company >> > > data contamination so went for the 'database per client'
Database Connection from another pc by IP Address.
Dear All, I need cakephp database connection from another PC , Now currently i use lampp, I need database connection from another pc. Pls help me. How i can connect database from another pc in my lampp server. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 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