public function dataindexAction() { $threadModel = new ThreadModel(); $threadCount = $threadModel->threadCount(); $threads = $threadModel->select("threads")->fields("id")->where("del = 0")->fetchAll(); foreach ($threads as $key => $thread) { echo "http://ourcoders.com/thread/data/{$thread['id']}/\r\n"; } }