RainTPL3 -> Plugins -> own plugin

94 views
Skip to first unread message

Steffen Unland

unread,
May 15, 2012, 11:01:00 AM5/15/12
to rai...@googlegroups.com
Hi Guys,

I have a little question ;) I use for my private websites always rainTPL.
Now I want create a little XML file plugin, but I have a little problem with the DOMDocument() function ;)

[dev:/var/www ] $ php index.php
PHP Fatal error:  Class 'Rain\Tpl\Plugin\DOMDocument' not found in /var/www/library/Tpl/Plugin/nagiosXML.php on line 13


Following line make this problem ;)

13:   $doc = new DOMDocument();

How can I solve the problem?

Cheers,
Steffen

Rain Team

unread,
May 15, 2012, 11:06:54 AM5/15/12
to rai...@googlegroups.com
Hi Stephen,
can you give me more detail about your plugin? 
Anyway the best way to create a plugin, is to copy one and implement your functions in it. 
Hope that help!


Reply all
Reply to author
Forward
0 new messages