get('app', $app)) { die("invalid module"); } if (!empty($_REQUEST['no_parts'])) { // used to do the previewer $this->builderJs = array(); //should it try and load the core??? $o = HTML_FlexyFramework::get(); $o->enable = ''; $o->enableArray = array(''); $o->disable = 'Core'; $this->disable_jstemplate = true; return; } $p = DB_DataObject::factory('builder_part'); $p->module_id = $mod->id; $p->selectAdd(); $p->selectAdd('module'); if (!$p->find()) { die("Invalid Application (2)"); } $this->builderJs = array(); $ff = HTML_FlexyFramework::get(); while ($p->fetch()) { // file exists in file system - dont add it twice! // this is a bit questionable.. - we may need to check if the // db version is more recent. $fl = $ff->rootDir.'/Pman/'. $app .'/'.$p->module.'.js'; //if (file_exists($fl) && filesize($fl)) { // continue; //} $this->builderJs[] = $p->module; } $o = HTML_FlexyFramework::get(); //echo '
';print_r($o);exit;
        $o->enable = 'Core';
        $o->enableArray = array('Core');
        //$o->options = 'Core,'.$o->options;
             
        return parent::get('');
        
        
    }
    
}