Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
電話番号を入力するためのウィジェットを作成しますsfWidgetFormInputText。目標はを追加すること<span>+7<span>です。
sfWidgetFormInputText
<span>+7<span>
それを実装する方法は?
ウィジェットクラス:
class MyWidgetFormInputPhoneNumber extends sfWidgetFormInputText { public function render($name, $value = null, $attributes = array(), $errors = array()) { return '<span>+7</span> '.parent::render($name, $value, $attributes, $errors); } }