In php how to determine the event number

  • Russell Noble
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 weeks ago #79873 by Russell Noble
In php how to determine the event number was created by Russell Noble
Hi,
I'm wondering across the frontend and backend is there a consistent way of determining the current event id being processed?
For example, in a field $this->eventId seems to work, but not always. Sometimes $eventId = JRequest::getInt('event_id', 0); works.

In registrant management at the front end I cant seem to find a variable with the event id, $this->eventId is not set within the field php, but at the backend it is set.

Thanks,
Russell

Please Log in or Create an account to join the conversation.

More
8 years 2 weeks ago #79884 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic In php how to determine the event number
Hi Russell

The best way would be using $form->setEventIf($eventId) as you suggested via support ticket

I am going to work on this change (on tomorrow or sometime next week)

For now, maybe you can just add that code yourself?

Tuan

Please Log in or Create an account to join the conversation.

  • Russell Noble
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 weeks ago #79915 by Russell Noble
Replied by Russell Noble on topic In php how to determine the event number
Yep, no problem and no rush. I realised that after I'd posted.
Wonderful support as usual.

Please Log in or Create an account to join the conversation.

More
8 years 2 weeks ago #79927 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic In php how to determine the event number
Hi Russel

I sent you an updated version which supports it via support ticket. Could you update, then check it and let me know the result?

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc