Forums / Developer / Include PHP Script into EZ
Badii Bouteraa
Thursday 02 March 2006 10:44:08 am
Hello, excuse me for my English :)
I added a new operator of template to be able to include files php in ez. (I have many forms with several stages of recording to integrate in the pages ez and I préferé to use php rather than ez: it is the simpler) new operator of template walk well and I can include scripts php without problem but I have small troubles, when I filled and that I validate the form it makes the recording in the base of data but does not take into account the message of confirmation of inscription of the form
ez takes into account only one alone action in my file php; just insertion but I does not take into account tests it after insertion to be able to post the message of confirmation
you have an idea ?
Badi
Łukasz Serwatka
Thursday 02 March 2006 11:35:10 pm
Hi Badii,
Instead including php files in templates, better is create new module where you have full control on the input and the output. Data from your form you can pass to your module, then validate and do some action with them. You can of course use templates for output presentation from your module.
Good tutorial how to create new module you can find here:http://ez.no/products/ez_publish/documentation/development/extensions/module/hello_world
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog