It's behavior is fairly intuitive. So, the first parameter you have passes becomes the first segment, the second one becomes the second segment and so on.
Example code:
If you call
You can also use the http://ellislab.com/c to get these parameters.
For your query:
Example code:
- <?php
- class Home extends CI_Controller {
- public function index($memid, $some_other_parameter)
- {
- echo $memid;
- }
- }
- ?>
If you call
www.example.com?memid=1100
, it will echo 1100
, provided the Home
controller is routed correctly.You can also use the http://ellislab.com/c to get these parameters.
For your query:
$this->input->get('memid', TRUE);
No comments:
Post a Comment