sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
572 B

<?php
function dojo_code_location() {
return '../../dojo/';
}
function dojo_project_name() {
return 'dojo';
}
function dojo_resource_name($namespace, $file) {
return $file;
}
function dojo_package_name($namespace, $file) {
//return;
$parts = explode('/', $file);
if ($parts[0] == '_base') {
return $namespace;
}
$file_parts = explode('.', array_pop($parts));
if (in_array('tests', $parts)) return;
array_pop($file_parts);
array_push($parts, implode('.', $file_parts));
array_unshift($parts, $namespace);
return implode('.', $parts);
}
?>