Problem with notification.php

Author Message

Javier Rodriguez

Thursday 15 September 2005 4:32:06 am

Hi,

I'm trying working cronjobs/notification.php

I do these steps:

1. $php4 notification.php

/* notification.php code*/

   $event =& eZNotificationEvent::create( 'ezcurrenttime', array() );
   $event->store();

/* notification.php code*/

$event is an eznotificationevent Object but function $event->store(); doesn't exist. why?

/* notification.php code*/

   eZNotificationEventFilter::process();

/* notification.php code*/

/*eznotificationeventfilter.php code*/

    function process()
    {
        $eventList =& eZNotificationEvent::fetchUnhandledList();

/*eznotificationeventfilter.php code*/

$eventList is array() and next script doesn't work

What am i doing erroneus?
Exec notification.php is any kind to send mail (for example to Admin) when forum message is stored? Can I try with another method?

Thanks in advance!

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