function out_url($file, $PRIORITE = "DESC"){
$out_file = $this->_out_file($file, $PRIORITE);
- return $out_file ? $this->path("mw_path").$out_file : $file;
+ return $out_file ? $this->path("web").$this->path("mw_path").$out_file : $file;
}
function _out_file($file, $PRIORITE = "DESC"){
function out_config($name){
if(isset($this->out_config)){
$CONFIG = $this->get_CONFIG();
- return isset($CONFIG["out_".$name]) ? $CONFIG["out_".$name] : $this->out_config[$name]["default"];
+ return isset($CONFIG["out_".$name]) ? $CONFIG["out_".$name] : (isset($this->out_config[$name]) ? $this->out_config[$name]["default"] : "");
}
return null;
}
($init_script = $this->init_script())
&& $this->out_file_exists($init_script)
) require $this->out_file($init_script);
+ $data = $this->data();
if($layout["page"]){
if($this->out_file_exists($layout["page"])) require $this->out_file($layout["page"]);
}
}
function get_out_config(){
- return array();
+ $out_config = array();
+ if($this->ENV_SET){
+ $env = $this->modules["env"];
+ $out_config = $env->get_out_config();
+ }
+ return $out_config;
}
function set_template_infos($template_infos){