protected function show() { if ($this->values->error) { $this->template->message = DOMFactory::getDiv($this->values->error)->addClass('error'); } $commentView = new CommentView(); $commentView->produceComments(); $this->template->type = $this->url->getController(); $this->template->id = $this->url->getParameter(0); $this->template->sourceId = $this->values->video->getSourceId(); $this->template->title = $this->values->video->getTitle(); $this->template->description = $this->values->video->getDescription(); $this->template->duration = $this->values->video->getLength(); $this->template->date = Date::convert($this->values->video->getDate(), 'j F Y'); $this->template->videoObject = $this->template->getTemplate('video', $this->values->video->getType()); $this->template->link = $this->url->getURL(); $link = $this->url->getCustomActionURL('profile', $this->values->video->getLogin()); $this->template->username = DOMFactory::getLink($link, $this->values->video->getUsername()); $this->template->show($this->url->getActionPath()); }
<?php require_once "../model/commentView.model.php"; //$art->forDelData($_POST); $commentview = new CommentView(); echo $commentview->handlePost($_POST);