Hello everyone.
-- I have a small problem, and maybe you know how to solve this:
I have a table with town and city and i need that after select town , the field for city to autocomplete.
Please note that there are many town in one city, so i need to update the city field with exact city from the table.
Database table looks like this: id | town | city
my ctp file look like this
echo $this->Form->input('User.town', array(
'options' => $city,
'class' => array('form-control', 'chosen-select'),
'label' => false,
'empty' => 'Towns',
));
echo $this->Form->input('User.city', array(
'readonly' => 'readonly',
'class' => array('form-control', 'chosen-select'),
'label' => false
));
I'm using cakephp 2.5 and i'm new in cakephp.
Thanks in advance for the help.
Best Regards,
Stefan
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment