hi,
Banging your head on a wall is deprecated, headaches are side-effects.
Try to add an exception in your configure() :
throw new Exception("Was Here");
Does it happens ?
"theemail" : do you have an object Theemail in your model ? Who has set this
name on form ?
In your template :
throw new Exception(class($form));
instead of rendering. Look at form class.
First of all, check the rendered widget is the widget you declared, and not
another (like generated forms and other custom/plugin form).
And tell lus,
Alexandre
2009/11/29 Antony <[email protected]>
> Hello,
>
> I'm banging my head against the wall after trying to make this work..
>
> Here is the setting:
>
> I have a form "email like" and I wanted to add TinyMCE for the main
> body. I installed the sfFormExtraPlugin, and TinyMCE in my js/ folder.
> Then I opened my emailForm.class.php and added:
>
> public function configure()
> {
> $this->setWidgets(array( 'body' => new sfWidgetFormTextareaTinyMCE
> (
> array(
> 'width' => 550,
> 'height' => 350,
> 'config' => 'theme: "simple"',
> ),
> array(
> 'class' => 'tiny_mce'
> )
> )
> ));
> }
>
> But then, when I render the Template containing the basic $form->render
> () function it just outputs a basic <textarea rows="4" cols="30"
> name="theemail[body]" id="theemail_body"></textarea>
>
> I can't make it render the TinyMCE enabled version.
>
> TibyMCE is not the issue because if I add it manually by putting:
> <script type="text/javascript">
> tinyMCE.init({
> mode: "exact",
> elements: "theemail_body",
> theme: "simple"
> });
> </script>
> it works..
>
> It seems that the declaration of the new sfWidgetFormTextareaTinyMCE
> (xxxx) is ignored.
>
> Any idea about how I could test the fact that the declaration is taken
> into account or not and why?
>
> Just so you know, if I mispell the new sfWidgetFormTextareaTinyMCE
> (xxxx) there is no error either..
> Also, Eclipse seems to recognizes the class (telling me it extends the
> sfWidgetFormTextarea) which would indicate that it is know by the
> code..
>
> very weirs..
>
> Thanks
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>
>
--
Alexandre Salomé -- [email protected]
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.