<?php
$noauth = true;
$cms_root_path = "../../";
require_once $cms_root_path . "includes/compatibility_includer.php";

require('classes/class.simplemodelmodulebuilder.php'); // MODEL SETTINGS
require('includes/settings.php'); // MODEL SETTINGS

$model_class_name = MODEL_CLASS_NAME;
$page_meta['title'] = 'Manage ' . ucwords(MODEL_PRULAR);

$model_list = $model_class_name::get();

$json_list = array();

foreach ($model_list as $key => $model_list_item) {
	$json_list[$model_list_item->id] = $model_list_item->name;
}

echo json_encode($json_list);
exit();
