jslocales) { $syjStrings = new phptojs\JsObject('SyjStrings'); foreach ($this->jslocales as $prop => $value) { if (is_array($value)) { $syjStrings->$prop = call_user_func_array(array($this, 'translate'), $value); } else { $syjStrings->$prop = $this->translate($value); } } $this->headScript()->prependScript((string) $syjStrings); } echo $this->headBase()->setIndent(4) . PHP_EOL; echo $this->headTitle()->setIndent(4) . PHP_EOL; echo $this->headLink()->setIndent(4) . PHP_EOL; echo $this->headScript()->setIndent(4) . PHP_EOL; ?> render('header.phtml'); ?> layout()->content; ?> render('footer.phtml'); ?>