D
D
Dmitro Rak2016-05-31 01:24:13
Yii
Dmitro Rak, 2016-05-31 01:24:13

How to get and pass event id from FullCalendar to yii2?

Hello.
I use FullCalendar by Philipp Frenzel .
I created a CRUD for events, and made it so that when you click on a day, the "create" form is called. Now the task is to open information ("view? id=?") about it when clicking on an already created event. But I can't figure out how exactly to make the script call the event that I want to edit when clicked. How to get and pass event id?
That, in fact, is the whole question.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-05-31
@Esforal

each event has the ability to set its own url. In this case, you can use...

$event = new Event();
$event->id = $id;
$event->url = 'http://site.com/view?id='.$id;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question