public function actionDellPost() { $coment = new Coment(); $coment->DellAllComentsByPost($this->params['id']); $post = new Post(); $post->DellPost($this->params['id']); $this->util->redirect($_SERVER['SCRIPT_NAME']); }
public function actionDoNewComent() { $coment = new Coment(); $coment->AddComent($this->params); $this->util->redirect('?action=view-post&id=' . intval($this->params['post_id'])); }