Re: Association not producing dropdown list, help! :(

2008-12-15 Thread Alexandru Ciobanu
_Z wrote: Now the index.ctp view: tr?php echo $class;? td ?php echo $waitlist['Waitlist']['first_name']; ? /td td ?php echo $waitlist['Waitlist']['last_name']; ? /td td ?php echo $waitlist['Waitlist']['ph_mobile']; ?

Re: Association not producing dropdown list, help! :(

2008-12-13 Thread yash
are you doing the right form-create(); ??? best would be if you copy paste you controller and view so i can have a look at it. Alexandru's solution should work.. cheers On Dec 12, 8:56 pm, _Z zmcar...@gmail.com wrote: Hi Alexandru. Thank you for the input. But a dropdown box is STILL not

Re: Association not producing dropdown list, help! :(

2008-12-13 Thread Alexandru Ciobanu
_Z wrote: I validated with pr($store_tables); That I am indeed getting back a list of tables. However the echo $form-input('store_table_id'); does not produce a dropdown. Any other ideas or things I need to check? Like yash said, please paste your controller and view.

Re: Association not producing dropdown list, help! :(

2008-12-13 Thread _Z
Ok gents: In Waitlists controller, just reading session variable, and returning all entries that match that store. Waitlists Controller function index() { $this-Waitlist-recursive = 0; $storeid = $this-Session-read('UserStoreId'); $store_tables =

Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
Hello, I am expecting a dropdown box in my /add action, but only a textbox is produced. Another field is associated and configured the same way, and I get a dropdown box. Details: The association is setup so that 'store_table' belongsTo 'Waitlist'. In the /add.ctp , echo

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread dr. Hannibal Lecter
I'm just guessing here, but I assume your table should be called store_tables (plural). Of course I might be completely wrong if your StoreTable model is working as expected..? On Dec 12, 6:17 pm, _Z zmcar...@gmail.com wrote: Hello, I am expecting a dropdown box in my /add action, but only a

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
Hello Doctor, Yes, that is correct. The table is called store_tables. On Dec 12, 12:31 pm, dr. Hannibal Lecter lecter...@gmail.com wrote: I'm just guessing here, but I assume your table should be called store_tables (plural). Of course I might be completely wrong if your StoreTable model is

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread Alexandru Ciobanu
_Z wrote: Hello, I am expecting a dropdown box in my /add action, but only a textbox is produced. In your controller: $store_tables = $this-Waitlist-StoreTable-find('list'); $this-set(compact('store_tables')); In your view: echo $form-input('store_zone_id');

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
Hi Alexandru. Thank you for the input. But a dropdown box is STILL not happening :/ I validated with pr($store_tables); That I am indeed getting back a list of tables. However the echo $form-input('store_table_id'); does not produce a dropdown. Any other ideas or things I need to check? There