second controller not accessible |
[eluser]webdevguy32[/eluser]
Right. Highly, extensively embarrassed. However, when I changed the code, cleared cache., ran the project and logged in, it error-ed out 404@ URL = /index.php/admin/administer/members New beginning to administer class: Code: class Administer extends CI_Controller { Quote:To call the above controller your URI will look something like this:Does this have any effect on what I am doing?
[eluser]webdevguy32[/eluser]
Here's the login that posts back to main method: Code: <!DOCTYPE html> redirect('admin/administer/members');
[eluser]webdevguy32[/eluser]
Please clarify - by the way, I most sincerely appreciate your help.
[eluser]webdevguy32[/eluser]
Wasn't sure where you wanted it but I put it above the login form. It rendered the message that it does later in the form when I have that line. I added it to the controller logic and it did not change -> 404'ed out. I restarted apache and cleared cache b4.
[eluser]Tpojka[/eluser]
I gave you the link "above". Take a look where is placed echoin errors in user_guide. Check is there same method names. Maybe one has member and other members. Edit: try with Code: if (!$this->session->set_userdata($data)) { echo "Session data not set!"; exit(); }
[eluser]webdevguy32[/eluser]
I added it and some other more perhaps revealing code: Code: //set session data Array ( [session_id] => 7661b8f329adfd65fcc9f9e847ffb76b [ip_address] => ::1 [user_agent] => Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/28.0.1550.0 Chrome/28.0.1550.0 Safari/53 [last_activity] => 1382399860 [user_data] => [username] => myname [verified] => 1 ) Session data not set! Array ( [session_id] => 7661b8f329adfd65fcc9f9e847ffb76b [ip_address] => ::1 [user_agent] => Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Iron/28.0.1550.0 Chrome/28.0.1550.0 Safari/53 [last_activity] => 1382399860 [user_data] => [username] => myname [verified] => 1 ) Note: It displays the session data, indicates there is not session data then displays it again. What in the world is going on?
[eluser]Tpojka[/eluser]
It is really late for me now (CET). I am off, I hope you'll find errors. Eventually, if not, tomorrow we continue. ![]() GN |
Welcome Guest, Not a member yet? Register Sign In |