1 Overriding default widget templates
You can easily override widget views (=templates). This flexible solution was developed to allow clients to customize widget views for their needs.
To override widget views you need to find the original view in common folder and copy it to custom folder in the same directory structure.
For example, if you need to override view common/modules/comments/widgets/views/CommentsFormWidget.php
you need to copy it into
custom/modules/comments/widgets/views/CommentsFormWidget.php
and change it there.
2 Disabling overriding
Overriding can be disabled in any time by specifying this option in the configuration:
'params' => array( //If true try to use view files from custom section 'customViews' => false, ................... )