function show_action($id) { $model = new PostModel(); $post = $model->get_post_by_id($id); $html = render_template('View/Templates/show.php', array('post' => $post)); return $html; //require "View/Templates/show.php"; }