# Bootstrap calendar don't show event

**URL:** <https://discourse.cakephp.org/t/bootstrap-calendar-dont-show-event/3135>\
**Category:** Need Help\
**Created:** [September 5, 2017, 3:26pm UTC](https://discourse.cakephp.org/t/bootstrap-calendar-dont-show-event/3135 "2017-09-05T15:26:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aminaitlhadj](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@aminaitlhadj](https://discourse.cakephp.org/u/aminaitlhadj)\
**Post date:** [September 5, 2017, 3:26pm UTC](https://discourse.cakephp.org/t/bootstrap-calendar-dont-show-event/3135/1 "2017-09-05T15:26:57Z")

</div>

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/](http://bootstrap-calendar.eivissapp.com/)  
Thanks
