By clkuo1226 on Wednesday, 10 July 2019
Replies 3
Likes 0
Views 639
Votes 0
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
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
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I need add event by user action
after add the from data , this time add event
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
5 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post