public function action_get_item($year, $month, $item) { $start = DateTime::createFromFormat('Y-m-d', sprintf('%s-%s-%s', $year, $month, 1)); $end = clone $start; $end->add(new \DateInterval('P1M')); $posts = Posts::item($start, $end, $item); $title = reset($posts)['title']; return self::create_posts("item » {$title}", $posts); }