/** * @param $id */ public static function read($id) { Posts::incrementView($id); $post = Posts::read($id); $users = Accounts::find(['type' => 2]); View::render('read-post', ['post' => $post, 'users' => $users, 'categories' => Categories::all()]); }