Welcome Guest, Not a member yet? Register   Sign In
implementing the third parameter in model class
#2

[eluser]LuckyFella73[/eluser]
Just catch the 3rd parameter, for example:

Code:
$param = $this->uri->segment(3);

and do with $param whatever you want.

In your case:
Code:
$param = $this->uri->segment(3);
$this->load->model(’Model_name’, ‘’, $param);

or shorter:
Code:
$this->load->model(’Model_name’, ‘’, $this->uri->segment(3));


Messages In This Thread
implementing the third parameter in model class - by El Forum - 02-01-2008, 09:34 AM
implementing the third parameter in model class - by El Forum - 02-01-2008, 06:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB