Text widget
* Text widget example
PHP Source:
<?php
class wsProductsDataManager extends miDataManager {
protected $_dataFields = array(
array(
'field' => 'miWebFormWidgetText',
'data' => 'ProductName',
)
);
}
?>
Template:
<span>%%PRODUCTNAME%%</span>
* Text simple widget example
PHP Source:
<?php
class wsProductsDataManager extends miDataManager {
protected $_dataFields = array(
array(
'field' => 'miWebFormFieldText',
'data' => 'ProductName'
)
);
}
?>
Template:
<span>
<input type="text" name="ProductName" value="%%PRODUCTNAME%%" />
</span>