<?php
$path = '../../../';
require_once $path . 'core/includes/header.inc.php';

$cats = ['' => '--Select Category--'];
$category_list = [];

$page = new Page(79);

if (!empty($page->pagedata['Categories'])) {
    foreach ($page->pagedata['Categories'] as $category) {

        $cat_name = str_replace('\'', '', $category['Category']['value']);
        $cat_name = strtolower(str_replace(' ', '-', $cat_name));
        $cats[$cat_name] = $category['Category']['value'];
        $category_list[$cat_name] = $category['Category']['value'];

    }
}



header('Content-Type: application/json');
echo json_encode($cats);
die();




