Wednesday, 10 July 2019
  3 Replies
  892 Visits
0
Votes
Undo
how to add events by php?
i need add event to jevents by php code
how can i do?
add to data to which one tables?
i try add to jevents_vevdetail but event not show the jevents
Wednesday, 10 July 2019 23:24
·
#211473
0
Votes
Undo
Hello,

Why do you want to add events directly via PHP? Can you do the iCal/CSV Importing Instead?

Otherwise you need to pass all the object etc into our model and save.

Many thanks
Tony
Thursday, 11 July 2019 02:15
·
#211487
0
Votes
Undo
I need add event by user action
after add the from data , this time add event
Thursday, 11 July 2019 09:29
·
#211494
0
Votes
Undo
Ok you need to have title, description, start/end times and they need to be setup correctly with timezone / unix formatting. but see:

doSave function in:
\administrator\components\com_jevents\controllers\icalevent.php

Or you could look at using the CSV Import method and passing that in by seeing how we handle frontend imports in:

components/com_jevents/views/default/icals/tmpl/importform.php

Many thanks
Tony
  • Page :
  • 1
There are no replies made for this post yet.