$this->data['Site']['site_id'] Presuming you are wroking in the sites_controller.php
Anja -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von pkclarke Gesendet: Mittwoch, 26. November 2008 12:57 An: CakePHP Betreff: retrieve value of a "select" in the controller I have an uber-noob question: My view has a "select" that is not associated with any models: echo $form->select('site_id', array('1'=>'Site 1', '2'=>'Site 2'), '1', array('id' =>'sites', 'label'=>'Site:')); How do I get the value of the "select" from the controller? The most logic solution is: $this->data['site_id'] But that doesn't work. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
