EventbookingHelperData::excelExport cannot be overriden

  • ci-zeto
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 2 days ago #129838 by ci-zeto
Tried to attach code related here, but cannot, because each time i get Access denied error. Attaching php extension is impossible here so i tried attach txt file with php code - Submit button becoming disabled...

I just made file in components/com_eventbooking/helper/override/data.php, made
class EventbookingHelperOverrideData extends EventbookingHelperData
, copied method
excelExport public static function excelExport($fields, $rows, $filename, $headers = array())
, added
exit
; line at the beginning of method, but file keep exporting. When I use
exit
on original method excelExport blank page appears.

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

More
2 weeks 1 day ago #129858 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic EventbookingHelperData::excelExport cannot be overriden
Hello

I just tried and it worked well. So it must be something special on your site causing the error

You can try to get this attached file, unzip it, upload to components/com_eventbooking/helper/override folder on your site for testing purpose

Regards,

Tuan
Attachments:

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

Moderators: Tuan Pham Ngoc