Email Confirmation |
[eluser]Unknown[/eluser]
Hi, guys. I'm new to the world of CodeIgniter and I was hoping somebody could help me with a problem I'm facing regarding email confirmation on new accounts. If you wouldn't mind, take a look at my code and let me know why it's not behaving as intended. Feel free to make some suggestions on how to improve my code too! Okay. So I have a registration system setup and everything seems to go well. New users are added to my database upon registering and an email is sent to new users with an activation URL, which utilises the random_string() function from CI's string helper. An example of an activation URL is: http://localhost/~Sites/ci/0.0.1/index.p...15AZWXI1a9 And here are some snippets from my files. Note that I'm just trying to echo the confirmation code at the moment (and then I'll be able to use it in my functions). CONTROLLER (activate.php): Code: class Activate extends CI_Controller { MODEL (member_model.php): Code: class Member_model extends CI_Model { When I visit the URL with the code on the end, I'm getting a 404 page. My first guess is that I'm doing something wrong with the segment() function? Thanks in advance. Loving CodeIgniter by the way. It makes life so much easier! : ) |
Welcome Guest, Not a member yet? Register Sign In |