1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| // myWidgetFormTextareaTinyMCE.class.php
class myWidgetFormTextareaTinyMCE extends sfWidgetFormTextareaTinyMCE
{
protected function configure($options = array(), $attributes = array())
{
parent::configure($options, $attributes);
// Ajouter éventuellement ton code spécifique
}
public function render($name, $value = null, $attributes = array(), $errors = array())
{
$rendu = parent::render($name, $value, $attributes, $errors);
// Si tu veux changer le rendu, ajoute le code nécessaire ou réécrit entièrement cette méthode.
// Si besoin, étudie le code de sfWidgetFormTextareaTinyMCE::render() pour t'inspirer
}
} |
Partager