Bootstrap calendar don't show event


#1

I’m new on cakephp . I’m working on a bootstrap calendar reservations . I want to show my reservations on the calendar from date of reservation . Here is my reservations controller ana the function feed:
public function feed() {

    $this->Reservation->recursive = 0;

    $reservations = $this->Reservation->find('all');
    
    //debug($reservations);
    

    foreach($reservations as $res) {
        
        $d = new DateTime($res['Reservation']['date_reservation'], new DateTimeZone('Europe/Rome'));

                
        $end = $res['Reservation']['date_reservation'];
        
        $data[] = array(
                'id' => $res['Reservation']['id'],
                'title'=>'Reservation',
                'class'=>'event-warning',
                'url'=> '/reservations/undefined',
                'name'=>$res['Reservation']['name'],
                'start'=> $d->getTimestamp(),
                'end' =>  $d->getTimestamp(),
                'allDay' => false,
                
        );
    }
    echo json_encode(array('success' => 1, 'result' => $data));
    
    
    exit();
}

And this what look like my calendar :
http://bootstrap-calendar.eivissapp.com/
Thanks