/** * get list */ public function getList() { require_once 'models/common/common_comment.php'; $Comment = new common_comment(); $list = $Comment->getCommentList(false, 'id DESC'); return $list; }
/** * insert node */ public function insertComment($data) { $Comment = new common_comment(); //print_r($data); //return 1; if ($id = $Comment->insert($data)) { return $id; } else { msg("Cannot insert comment " . print_r($data, true), 'error'); return false; } }