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').'/ezpublish-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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.