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 = $this->Waitlist->StoreTable->find('list');
$this->set(compact('store_tables'));
//conditional Paginate for sorting, great!
$this->set('waitlists', $this->paginate(null , array
('Waitlist.store_id' => $storeid,'Waitlist.seated_ts'=> Null)));
}
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']; ?>
</td>
<td>
<?php echo $waitlist['Waitlist']['party_size']; ?>
</td>
<td> <?php $form->input('store_table_id'); </td>
I just keep getting a textbox :(
Thank you all very much for your help!
_Zach
On Dec 13, 8:58 am, Alexandru Ciobanu <[email protected]> wrote:
> _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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---