I am trying to create a message that shows up when login.php?e=1
on the login page: /login/
. The issue I am coming to have is that in codeigniter when I do /login/e/1/
codeigniter seems to think e
is a function and thus, since it doesnt exist, outputs a 404
.
I am trying, in the index function to grab the segments like a get request, however this does not work. How can one do typical get requests that would be trivial outside of codeigniter, in codeigniter while staying true to the uri that codeigniter uses?
// Are they attempting to access a secure page?
if ($this->uri->segment(1) == 'e' && $this->uri->segment(2) == '1'):
if ($this->generic->getOption('block-msg-out-enable')) {
$this->msg = $this->generic->getOption('block-msg-out');
}
endif;
See Question&Answers more detail:os