Игорь_Vasinsky
22.04.2014 - 11:20
function load_tpl(){
$engine = new Engine;
print $engine->parse_ini();
$tpl = file_get_contents($this->dir .'/'. $this->tpl_file);
$start = microtime(true);
usleep(320);
$end = microtime(true);
$runtime = $end - $start;
$l_time = 'Время выполнения скрипта в микросекундах: '. $runtime;
$tpl = str_replace('{title}', 'Заголовок', $tpl);
$tpl = str_replace('{theme}', $this->dir, $tpl);
$tpl = str_replace('{copyright}', $this->copyright, $tpl);
$tpl = str_replace('{load_time}', $l_time, $tpl);
$tpl = str_replace('{lo}', $pini['Title'], $tpl);
return $tpl;
}
Цитата |
print $engine->parse_ini(); |
Цитата |
$tpl = str_replace('{lo}', $pini['Title'], $tpl); |
ничего подозрительного?
_____________
HTML, CSS (Bootstrap), JS(JQuery, ExtJS), PHP, MySQL, MSSql, Posgres, (TSql, BI OLAP, MDX), Mongo, Git, SVN, CodeIgnater, Symfony, Yii 2, JiRA, Redmine, Bitbucket, Composer, Rabbit MQ, Amazon (SQS, S3, Transcribe), Docker