baseUrl = $this->getBaseUrl(); } public function getHomeUrl() { return $this->baseUrl; } public function getArticleShowUrl($id) { $route = $this->url->get(['for' => 'home.article.show', 'id' => $id]); return $this->baseUrl . $route; } public function getQuestionShowUrl($id) { $route = $this->url->get(['for' => 'home.question.show', 'id' => $id]); return $this->baseUrl . $route; } public function getCourseShowUrl($id) { $route = $this->url->get(['for' => 'home.course.show', 'id' => $id]); return $this->baseUrl . $route; } public function getChapterShowUrl($id) { $route = $this->url->get(['for' => 'home.chapter.show', 'id' => $id]); return $this->baseUrl . $route; } public function getUserShowUrl($id) { $route = $this->url->get(['for' => 'home.user.show', 'id' => $id]); return $this->baseUrl . $route; } public function getTeacherShowUrl($id) { $route = $this->url->get(['for' => 'home.teacher.show', 'id' => $id]); return $this->baseUrl . $route; } public function getPointGiftShowUrl($id) { $route = $this->url->get(['for' => 'home.point_gift.show', 'id' => $id]); return $this->baseUrl . $route; } protected function getBaseUrl() { return kg_site_url(); } }