This topic is locked

Events in 3.0

1/5/2006 7:01:58 PM
PHPRunner General questions
A
Alan4573 author

Anybody know how to get the events working in 3.0?
Cheers

Sergey Kornilov admin 1/6/2006

Sure, I know.
What exactly doesn't work?

A
Alan4573 author 1/6/2006

Sure, I know.

What exactly doesn't work?


Hi Sergey,
Basically, nothing works. The events dont seem to do anything.

I must be doing something pretty dumb and not setting them up correctly <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=7368&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />
Do you have a step by step help guide for this?
Thanks
Alan

Sergey Kornilov admin 1/6/2006

Alan,
"nothing works" is not very descriptive. Tell me what Event did you choose and what Action you add to this event.
Also you can send your project file along with your database to support@xlinesoft.com for investigation. I'd be glad to help you.

A
Alan4573 author 1/6/2006

Alan,

"nothing works" is not very descriptive. Tell me what Event did you choose and what Action you add to this event.
Also you can send your project file along with your database to support@xlinesoft.com for investigation. I'd be glad to help you.


Hi Sergey,
I just tried again on a test project.

I selected a table event on a table (fixtures)
I chose Print Page Print page: OnLoad

Then I chose Redirect to another page

Then I changed "Location: anypage.php" to "Location: fixtures_list.php"
Shouldn't this redirect requests to fixtures_print to fixtures_list? If so, it doesn't, fixtures_print is still displayed.
I know there is no sensible reason why I would want to trigger this event, I am just trying to work out how to make it work.
Am I doing something wrong???
Thanks

Sergey Kornilov admin 1/7/2006

Alan,
by default buffering is turned off in PHP. This means redirect to another page won't work on print page because some data were written to output when this event happens.
Redirect will work fine in Events like BeforeEdit or AfterEdit. Also you can turn buffering on in PHP settings.
If you simply like to test events try to print something on the web page.

A
Alan4573 author 1/7/2006

Alan,

by default buffering is turned off in PHP. This means redirect to another page won't work on print page because some data were written to output when this event happens.
Redirect will work fine in Events like BeforeEdit or AfterEdit. Also you can turn buffering on in PHP settings.
If you simply like to test events try to print something on the web page.



Thanks Sergey - I'll give it a try

R
rkhanna01 1/7/2006

The online help does not include help for using events. I am getting the following error:
Parse error: syntax error, unexpected '*' in C:\Program Files\Apache Group\Apache2\htdocs\include\holiday_events.php on line 7
A step by guide will be useful.
Thanks

Sergey Kornilov admin 1/9/2006

Hi,
it seems that there is an error in your event code.

Please post here the code you added on Events tab in PHPRunner.