Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getControl() {
- $control = parent::getControl();
- $name = $control->name;
- $id = $control->id;
- $control->name .= '[currency]';
- $control->id .= '-currency';
- $control->value = $this->value['currency'];
- $priceInput = Html::el('input')->name($name.'[amount]')->id($id.'-amount');
- // debug($this->value);
- $priceInput->value = $this->value['amount'];
- return $priceInput . $control;
- }
Advertisement
Add Comment
Please, Sign In to add comment