- Posts: 103
- Thank you received: 5
In php how to determine the event number
- Russell Noble
- Topic Author
- Offline
- Premium Member
Less
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
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
Less
More
- Posts: 103
- Thank you received: 5
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.
Wonderful support as usual.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
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
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
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.