Tuesday, January 5, 2010

Re: How can I get an option/select drop down to populate with a table.myfield instead of the table.id (primary key).

I know this is a really "green" question, but how does the
'{n}.State.id' section of your code work. I tried to look in my php
manual but was at a loss of where to find information on this "data
construct"/Placeholder/Whatever{n} is??? I have been at a loss as to
how to navigate the "complex" arrays that cake sometimes give me since
being new to programming/php/and cake.

Thanks, David

On Jan 4, 11:52 pm, bernalillo <bernalvar...@gmail.com> wrote:

> $state_list = Set::combine($data, '{n}.State.id', '{n}.State.state');

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate