I am using three combobox in .ctp file.
Like
<?php echo $form->select('category_id',$category_options,
$category_selected,array('id'=>'category','class'=>'search_input'),false); ?
>
<?php echo $form->select('type_id',$type_options,
$type_selected,array('class'=>'search_input'),false); ?>
<?php echo $form->select('sortby_id',
$sort_by,null,array('id'=>'sortby'),false); ?>
For third combo i m using ajax, so i used observeField method to find
change at state of third combo which calls action
sort_property_searchresult like..
<?php echo $ajax->observeField('sortby',array('url'=>'/properties/
sort_property_searchresult','update'=>'property_showcase_table'));?>
At sort_property_searchresult() i want fetch values of all comboboxes
like
$category=$this->data['Property']['category_id'];
$type=$this->data['Property']['type_id'];
$sortbyvalue=$this->data['Property']['sortby_id'];
But i found value of $sortbyvalue, so please tell me how to fetch
values of all comboboxes? Thanks..
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment