Forums / General / Writing a module in C++ ?

Writing a module in C++ ?

Author Message

Nicolas R

Wednesday 30 September 2009 6:50:26 am

Hello,

Is it possible to write a module in C++ ? If so, how can I do it ?

What must I put in function_definition.php to link my module to ezpublish ?

Thank you.

Nicolas

Jérôme Renard

Wednesday 30 September 2009 7:39:38 am

Hi Nicolas,

I would not do it that way, because it is not possible.

What I would do is the following :

1. write a pecl module with all the business logic you need (you can write pecl modules in C++ if I am not mistaken, Derick might confirm that)

2. use that module into a custom eZ Publish module so you call your pecl functions directly from your module by using the PHP language naturally.

Cheers :)