Edward Posted March 22, 2013 Share Posted March 22, 2013 I tried to use the Verify route from the book. 'verify/<x:\w+>/<y:\w+>' => 'user/verify', i added a verify action to my user controller, public function actionVerify($x, $y) { } i will be passing an email and activation code to it. http://localhost/myyiisite/verify/email%40gmail.com/1d2860f7df however when i tested it i receive this message: Error 404Unable to resolve the request "verify/email@gmail.com/1d2860f7df". Does anyone know what i am doing wrong? Link to comment Share on other sites More sharing options...
Larry Posted March 22, 2013 Share Posted March 22, 2013 The @ doesn't match a word. Apologies if that was my fault. You'll need to change the "x" match to allow for that, and the period, and anything else that could be in a email address. Let me know if you need help in doing that. Link to comment Share on other sites More sharing options...
Jonathon Posted March 23, 2013 Share Posted March 23, 2013 I ended up with verify/<x:.*>/<y:\w+> I'm sure it's not perfect, but I just wanted to nail down the process as a whole. Link to comment Share on other sites More sharing options...
Edward Posted March 23, 2013 Author Share Posted March 23, 2013 Thanks Larry and Jonathon, i changed mine to 'verify/<x:.+>/<y:\w+>' => 'user/verify', and now it works, i prefer to use the + over * as there has to be more than 1 character i guess it doesn't matter and comes down to your own personal preference. Link to comment Share on other sites More sharing options...
Recommended Posts