I am using Amazon linux instance. i have setup apache to be in the group file ownership. I setup app/cache to have 777 permissions. It seems to be working good until the moment when my controller returns data from Model to View via Volt:
foreach($events as $event){
$data[] = array(
'title' => $event->event_time,
'start' => $event->start_date,
'url' => UPDATE_URL . $event->appointment_id
);
}
$eventData = json_encode($data, JSON_NUMERIC_CHECK);
//Sending json to View
$this->view->setVar('data', $eventData);
data variable returns nothing in the index.php file, even though DB is full of events. Checked cached volt file, i can see <?php echo $data;?> Even though when i load index.php has no events. This code works just fine on my Lamp locally on Windows. DB works fine, i was able to login using the user created in db.
I think i can still miss some permissions that need to be corrected.
Please advise, maybe i need to switch off caching?