Forums / General / Can i write a PHP code in Template
Amer Azzaz
Tuesday 06 December 2005 5:47:48 am
Hi to All I want to know if I can to write a php code in template as it is. LIKE {literal} <?php print ('Hello World'); ?>{/literal}
Ćukasz Serwatka
Tuesday 06 December 2005 5:55:46 am
This will not work, and this is not a way how to use "View". If want to execute php script or you need result from script in templates, write custom module or template operator. Good tutorial with examples you can find here.
http://ez.no/products/ez_publish_cms/documentation/development/extensions/building_an_ez_publish_module
http://ez.no/products/ez_publish_cms/documentation/development/extensions/template_operator
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog