Forums / Install & configuration / Problems creating an extension

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problems creating an extension

Author Message

Valenti salas

Wednesday 15 December 2004 3:18:57 am

hello,

I'm creating my own etension and I'm with a question:

I'm using the tutorial in ez.no with the helloworld example.
I'm trying to change the 'hello world' string to show the results of phpadsnew:
if(@include(getenv('DOCUMENT_ROOT').'/Exponential-3.4.2/extension/phpadsnew/phpadsnew/phpadsnew.inc.php')) {
if (!isset($phpAds_context)) $phpAds_context = array();
$phpAds_raw = view_raw ('zone:1', 0, '', '', '0', $phpAds_context);
echo $phpAds_raw['html'];
}

but I don't know how to put it in the helloword function example to return the banner generated.