This commit is contained in:
Pavel Belyaev
2022-01-30 22:25:52 +05:00
parent f3b1e5a9b6
commit 7becd72264
8 changed files with 37 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
<?php
class LE_MOD_LOAD {
public $m1=false,$m2=false,$space_list=[],$mod_aliases=[];
public $m1=false,$m2=false,$space_list=[],$mod_aliases=[],$space=false;
public $init_path=false,$mod_path=false,$url;
function __construct($autorun=1)
@@ -36,6 +36,8 @@ class LE_MOD_LOAD {
if ($this->select_path($space)===false) return false;
$this->space = $space;
$mod=arr_v(SYSCONF::$DEFAULT_MODULE,$space,false); //default
if (!empty($mod_in_q))
{

View File

@@ -30,6 +30,12 @@ class LE_TPL {
return ob_get_clean();
}
public function fetch2mcont($t,&$vars=array(),$prefix=false,$cache_en=false)
{
$this->mod_cont .= $this->fetch($t,$vars,$prefix,$cache_en);
return $this;
}
public function path($tpl_path,$prefix=false)
{
if ($prefix===false) $prefix = $this->prefix;
@@ -71,6 +77,7 @@ class LE_TPL {
}
//static elements
public $need_st_list=[],$static_list=[],$static_dep=[],$top_st=[],$bottom_st=[];