示例#1
0
 private function create_page($rows)
 {
     $data = array_merge_recursive(TemplateBase::load(), ['Page' => reset($rows)]);
     Log::time('load');
     return $this->m_manager->evaluate('Page', $data);
 }
示例#2
0
 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);
 }