Last active
May 24, 2018 11:10
-
-
Save comtom/292cbbdd7765f12c776a1c76676942b3 to your computer and use it in GitHub Desktop.
Redirect index example for codeigniter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class IndexController extends CI_Controller { | |
| function __construct() { | |
| parent::__construct(); | |
| $this->load->helper('captcha'); | |
| $this->load->model('user', 'user'); | |
| } | |
| public function location($location_id) { | |
| $this->index($location_id); | |
| } | |
| public function index($location_id = 1) { | |
| $this->load->model('location', 'location'); | |
| ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment