{"action":"created","issue":{"url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/11","repository_url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php","labels_url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/11/comments","events_url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/11/events","html_url":"https://github.com/sonicsleuth/mvc-framework-php/issues/11","id":343738380,"node_id":"MDU6SXNzdWUzNDM3MzgzODA=","number":11,"title":"Controller/Route Issue","user":{"login":"jackttcoms","id":26184209,"node_id":"MDQ6VXNlcjI2MTg0MjA5","avatar_url":"https://avatars0.githubusercontent.com/u/26184209?v=4","gravatar_id":"","url":"https://api.github.com/users/jackttcoms","html_url":"https://github.com/jackttcoms","followers_url":"https://api.github.com/users/jackttcoms/followers","following_url":"https://api.github.com/users/jackttcoms/following{/other_user}","gists_url":"https://api.github.com/users/jackttcoms/gists{/gist_id}","starred_url":"https://api.github.com/users/jackttcoms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackttcoms/subscriptions","organizations_url":"https://api.github.com/users/jackttcoms/orgs","repos_url":"https://api.github.com/users/jackttcoms/repos","events_url":"https://api.github.com/users/jackttcoms/events{/privacy}","received_events_url":"https://api.github.com/users/jackttcoms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2018-07-23T18:10:07Z","updated_at":"2018-08-17T10:47:43Z","closed_at":"2018-08-01T14:09:03Z","author_association":"NONE","body":"Hello,\r\nI might be being thick but I have created a simple user verify controller method that used to work fine but currently its not working unless I use custom routes which I did not have to use before at all and instead it loads the homepage or home/index controller instead of running the actual code and I can't see why. The system works like so: domain.com/user/verify/email@email.com/4858394968849868394/ which then if correct updates the db but its just really weird as to why its not working! My only suspicion is the $email='' and $code='' because if I do not do the verify/param1/param2 and just verify then it does the check and redirects but after that it just won't work and just very odd so its clearly something to do with the parameters on the url but i'm unsure why? It works fine when I do a custom route but surely it should still work fine without them? Thanks again!\r\n\r\nController Method:\r\n```\r\n    public function verify($email='', $code='')\r\n    {\r\n        if($email != '' && $code != '') {\r\n            if( $this->user->checkVerifyCode($email, $code) ) {\r\n                $verify = $this->user->verify($email, $code);\r\n                flash('message','User Verified!','alert alert-success mb-0');\r\n               redirect('user/login');\r\n            } else {\r\n                flash('message','User Verification Failed!','alert alert-danger mb-0 fixed-top');\r\n                redirect('user/login');                \r\n            }    \r\n        } else{\r\n            redirect('user/login');\r\n        }\r\n    }\r\n```\r\n\r\nModel:\r\n```\r\n    public function checkVerifyCode($email, $code)\r\n    {\r\n        $bind = [\r\n            ':verify_code' => $code, \r\n            ':email' => $email\r\n        ];\r\n        $results = $this->db->select('msi_users','status = 0 AND email = :email AND verify_code = :verify_code', $bind);\r\n        return $results;\r\n    }\r\n    public function verify($email, $code)\r\n\t{\r\n        $bind = [\r\n            ':email' => $email,\r\n            ':verify_code' => $code\r\n        ];\r\n        $update = [\r\n            'status' => '1'\r\n        ];\r\n        $this->db->update('msi_users', $update, 'email = :email AND verify_code = :verify_code', $bind);\r\n        return true;\r\n\t}\r\n```\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/comments/413828727","html_url":"https://github.com/sonicsleuth/mvc-framework-php/issues/11#issuecomment-413828727","issue_url":"https://api.github.com/repos/sonicsleuth/mvc-framework-php/issues/11","id":413828727,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzgyODcyNw==","user":{"login":"jackttcoms","id":26184209,"node_id":"MDQ6VXNlcjI2MTg0MjA5","avatar_url":"https://avatars0.githubusercontent.com/u/26184209?v=4","gravatar_id":"","url":"https://api.github.com/users/jackttcoms","html_url":"https://github.com/jackttcoms","followers_url":"https://api.github.com/users/jackttcoms/followers","following_url":"https://api.github.com/users/jackttcoms/following{/other_user}","gists_url":"https://api.github.com/users/jackttcoms/gists{/gist_id}","starred_url":"https://api.github.com/users/jackttcoms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackttcoms/subscriptions","organizations_url":"https://api.github.com/users/jackttcoms/orgs","repos_url":"https://api.github.com/users/jackttcoms/repos","events_url":"https://api.github.com/users/jackttcoms/events{/privacy}","received_events_url":"https://api.github.com/users/jackttcoms/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T10:47:43Z","updated_at":"2018-08-17T10:47:43Z","author_association":"NONE","body":"Back from holiday and just saw your update regarding sessions and its really good! Very helpful! Such a good MVC :)\r\n\r\nThanks for building this excellent MVC 🥇 "}}
{"actor":{"display_login":"jackttcoms"}}