Frontend\Modules\Blog\Actions\ArticleCommentsRss::getData PHP Method

getData() private method

Load the data, don't forget to validate the incoming data
private getData ( )
    private function getData()
    {
        // validate incoming parameters
        if ($this->URL->getParameter(1) === null) {
            $this->redirect(FrontendNavigation::getURL(404));
        }
        // get record
        $this->record = FrontendBlogModel::get($this->URL->getParameter(1));
        // anything found?
        if (empty($this->record)) {
            $this->redirect(FrontendNavigation::getURL(404));
        }
        // get articles
        $this->items = FrontendBlogModel::getComments($this->record['id']);
    }
ArticleCommentsRss