private function create_page($rows) { $data = array_merge_recursive(TemplateBase::load(), ['Page' => reset($rows)]); Log::time('load'); return $this->m_manager->evaluate('Page', $data); }
private function create_posts($title, $rows) { $data = array_merge_recursive(TemplateBase::load(), ['Posts' => ['title' => $title, 'list' => self::create_posts_list($rows)]]); Log::time('load'); return $this->m_manager->evaluate('Posts', $data); }