Exemplo n.º 1
0
 private function Hot_Content()
 {
     global $templates;
     $content = new ContentModel();
     $object = $content->Hot_Content();
     foreach ($object as $value) {
         $value->date = substr($value->date, 5, 5);
         $value->title = Tool::Sub_Str($value->title, 15);
     }
     $templates->assgin('hot_content', $object);
 }