/** * tag.php */ public function getTag() { $tag = get_queried_object(); $args = ['postsWhereKey' => Ajax::TAG, 'postsWhereValue' => $tag->term_id, 'thingType' => I18n::transu('tag'), 'thingToSearch' => $tag->name, 'posts' => Post::getByTag($tag->term_id)]; return $this->renderPage('base/search', $args); }