function get()
{
// get the modules.
- //header('Content-type: text/javascript');
+ header('Content-type: text/javascript');
$ff = HTML_FlexyFramework::get();
//print_r($mods);
//$ar = explode(PATH_SEPARATOR, $ff->HTML_Template_Flexy['templateDir']);
+ array_push($mods, $pr);
- //$prefix = $pr == 'Pman' ? 'Pman.' : '';
-
- foreach($mods as $mod) {
- $dir = $this->rootDir .'/Pman/'. $mod . '/jtemplates';
+ foreach($mods as $mod )
+ {
+ $prefix = $mod == $pr ? "{$pr}." : "{$pr}.{$mod}.";
+ var_dump($prefix)
+ $pdir = $mod == $pr ? '' : ($pr .'/') ;
+
+ $dir = $this->rootDir .'/'.$pdir . $mod . '/jtemplates';
if (!file_exists($dir)) {
echo '// missing directory '. htmlspecialchars($dir) ."\n";
continue;