PHP
echo $this->Form->create('Street');
echo $this->Form->input('street', array('empty' => '-- select --', 'label' => '???'));
D B
ID | Street | Description
-----------------------
1 | Foo | Street 1 description
2 | Bar | Street 2 description
3 | FooFoo | Street 3 description
我想创建如下标签:
Foo - Street 1 description
像:
echo $this->Form->input('street', array('empty' => '-- select --', 'label' => 'Street.street - Street.description'));
如何使用 Cakephp Form Helper 生成它?谢谢!