public function run($id) { $this->controller->pageTitle = "Post"; $post = new CPost(); $result = $post->getpost($id); if ($result['code'] = 200) { $this->controller->render('postshow', array('data' => $result['data'])); } }