I am wondering if anyone can tell me how they handle success / failure messages in CodeIgniter.
For example, what I do when the user subscribes to my site is what happens in the controller
if (!is_null($data = $this->auth->create_user( $this->form_validation->set_value('username'), $this->form_validation->set_value('password') ))) {
Then in the same controller (create-profile) I have 2 methods that are similar to the following
function successful() { $data['h1title'] = 'Successful Registration'; $data['subtext'] = '<p>Test to go here</p>';
The problem is that I can just go to the .com / create-profile / successful site and it will display the page.
If someone could show me the best way to handle this, it would be quite helpful.
Greetings
source share