Codeigniter change url if get is empty |
Codeigniter change url if get is empty
When my get question id is empty http://localhost/project-ask/questions?question_id= It should switch back to http://localhost/project-ask/questions I have tried this below PHP Code: if (empty($this->input->get('question_id'))) { And a couple of other ways but not working keep getting message. This page isn’t working message Question if ?question_id= is in url but empty how to make sure it redirects to base_url('questions') PHP Code: <?php
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
Codeigniter change url if get is empty - by wolfgang1983 - 04-05-2017, 04:54 PM
RE: Codeigniter change url if get is empty - by noobie - 04-09-2017, 10:54 AM
|