/** * @param string $content data for parse and view * @access protected */ protected function _view($content) { $Register = Register::getInstance(); if (!empty($this->template) && $this->wrap == true) { Plugins::intercept('before_parse_layout', $this); $this->View->setLayout($this->template); $markers = $this->getGlobalMarkers(file_get_contents($this->View->getTemplateFilePath('main.html'))); $markers['content'] = $content; // Cache global markers if ($this->cached) { if ($this->Cache->check($this->cacheKey . '_global_markers')) { $gdata = $this->Cache->read($this->cacheKey . '_global_markers'); $this->globalMarkers = array_merge($this->globalMarkers, unserialize($gdata)); } else { $gdata = serialize($this->globalMarkers); $this->Cache->write($gdata, $this->cacheKey . '_global_markers', $this->cacheTags); } } $boot_time = round(getMicroTime() - $Register['fps_boot_start_time'], 4); $markers = array_merge($markers, array('boot_time' => $boot_time)); $output = $this->render('main.html', $markers); } else { $output = $content; } $this->_afterRender(); echo $output; if (Config::read('debug_mode') == 1) { echo AtmDebug::getBody(); } die; }