예제 #1
0
 /**
  * main action
  */
 public function mainAction()
 {
     require_once 'models/common/common_node.php';
     $Node = new common_node();
     $node_list = $Node->listing('', 'modified DESC', '0,20');
     foreach ($node_list as $item) {
         $item['latest_change_by'] = $Node->getCustomerIdForLastModified($item['id']);
         if ($item['publish'] == 0) {
             $item['class'] = 'disabled';
         }
         $this->tpl->assign("ITEM", $item);
         $this->tpl->parse('content.item');
     }
     return true;
 }