<?php
namespace imcat\demo;
use imcat\basJscss;
use imcat\comCookie;
use imcat\usrPerm;
/*
公共模板扩展函数
*/
class texBase{
//protected $xxx = array();
//protected $vop = null;
static function init($obj){
#dump($obj);
// 统一认证
$demo_flag = comCookie::oget('demo_flag');
if(strlen($demo_flag)==0){
comCookie::oset('demo_flag',1);
// more-code
}
}
static function pend(){
$tpl = cfg('tpl');
$jscode = "dosth('abc')";
echo basJscss::jscode("\n/*$jscode*/\n")."\n";
}
// 自定义方法
static function myfunc($a, $b){
return $a + $b;
}
}
-End-