예제 #1
0
파일: comments.php 프로젝트: maminu/JSPHP1
 public function __construct()
 {
     parent::__construct();
     if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['comment'])) {
         $this->addcomment();
     }
 }
예제 #2
0
파일: index.php 프로젝트: maminu/JSPHP1
 public function __construct()
 {
     parent::__construct();
     $this->comments = new Comments();
     if (!empty($_GET['id'])) {
         $this->viewpost($_GET['id']);
     } else {
         $this->getposts();
     }
 }
예제 #3
0
파일: posts.php 프로젝트: maminu/JSPHP1
 public function __construct()
 {
     parent::__construct();
 }