Re: having trouble with post on inherited cake project

2011-02-20 Thread cricket
On Sat, Feb 19, 2011 at 10:37 AM, Thomas wrote: > I have never used cake before but found myself thrust into it because > a project I have inherited was developed using it. I must say I find > it very inflexible as opposed to good old fashioned coding. I have a > form where the developers used ite

Re: having trouble with post on inherited cake project

2011-02-20 Thread David Kullmann
Thomas: I think 2 responses ago Cricket gave the best answer so far. Check out this page on the CakePHP docs that shows how to create an input with the "[]" modifier to the form name: http://book.cakephp.org/view/1395/options-multiple I know it can be frustrating inheriting a project and we have

Re: having trouble with post on inherited cake project

2011-02-19 Thread cricket
On Sat, Feb 19, 2011 at 11:33 PM, Thomas wrote: > Wow, not really sure what to say. The example you provided is pretty > much what I have now. I still have not gotten an answer. Can cake > dynamically create the post array key, again referencing this > example:? > > Maybe none of you have seen th

Re: having trouble with post on inherited cake project

2011-02-19 Thread Thomas
Wow, not really sure what to say. The example you provided is pretty much what I have now. I still have not gotten an answer. Can cake dynamically create the post array key, again referencing this example:? Maybe none of you have seen this because it is not possible in cake. But I would like a def

Re: having trouble with post on inherited cake project

2011-02-19 Thread cricket
On Sat, Feb 19, 2011 at 6:54 PM, Thomas wrote: > Basically if I remove the $i from the input in cake it renders all the > inputs the same name, or key if you will, I do not need to get rid of > the loop. I do not know the length of the loop as it is variable. I > will attach again what I have with

Re: having trouble with post on inherited cake project

2011-02-19 Thread cricket
On Sat, Feb 19, 2011 at 6:54 PM, Thomas wrote: > Basically if I remove the $i from the input in cake it renders all the > inputs the same name, or key if you will, I do not need to get rid of > the loop. I do not know the length of the loop as it is variable. I > will attach again what I have with

Re: having trouble with post on inherited cake project

2011-02-19 Thread Thomas
On Feb 19, 2:34 pm, cricket wrote: > On Sat, Feb 19, 2011 at 10:37 AM, Thomas wrote: > > I have never used cake before but found myself thrust into it because > > a project I have inherited was developed using it. I must say I find > > it very inflexible as opposed to good old fashioned coding.

Re: having trouble with post on inherited cake project

2011-02-19 Thread Thomas
Basically if I remove the $i from the input in cake it renders all the inputs the same name, or key if you will, I do not need to get rid of the loop. I do not know the length of the loop as it is variable. I will attach again what I have with cake and a snippet from a regular php project that show

Re: having trouble with post on inherited cake project

2011-02-19 Thread cricket
On Sat, Feb 19, 2011 at 10:37 AM, Thomas wrote: > I have never used cake before but found myself thrust into it because > a project I have inherited was developed using it. I must say I find > it very inflexible as opposed to good old fashioned coding. Perhaps you have that perception because you

Re: having trouble with post on inherited cake project

2011-02-19 Thread kdubya
Thomas, Please show us a bit more of the code surrounding the snippet with the checkbox. Also, what do you mean by "it hoses everything up?" Do you get error messages? It appears the original code snippet you show was in a loop. Why do you want to get rid of the loop? Ken -- Our newest site fo

having trouble with post on inherited cake project

2011-02-19 Thread Thomas
I have never used cake before but found myself thrust into it because a project I have inherited was developed using it. I must say I find it very inflexible as opposed to good old fashioned coding. I have a form where the developers used iterating keys in the form. What I want to do, and what I am