Welcome Guest, Not a member yet? Register   Sign In
ID and $this->uri->segment(n) returning nothing
#4

[eluser]Herb[/eluser]
Ok, there seems to be some code missing in order to give you an answer to your problem.

Where is the detail method being called? Should be something like...
Code:
$some_variable = $this->uri->segment(3);
$data = detail($some_variable);
Otherwise, how does segment(3) get assigned to $id?

Or you might what to do it this way if you are calling it detail through the url:
Code:
http://yourwebsite.com/events/detail/1

class Events extends Controller {
    function Events()
        {
        ...
        }

    function detail()
    {
        $id = $this->uri->segment(3);
        echo $id;
        echo $this->uri->segment(3);
    }


Messages In This Thread
ID and $this->uri->segment(n) returning nothing - by El Forum - 09-05-2009, 03:20 PM
ID and $this->uri->segment(n) returning nothing - by El Forum - 09-05-2009, 03:44 PM
ID and $this->uri->segment(n) returning nothing - by El Forum - 09-05-2009, 04:38 PM
ID and $this->uri->segment(n) returning nothing - by El Forum - 09-05-2009, 09:14 PM
ID and $this->uri->segment(n) returning nothing - by El Forum - 09-07-2009, 09:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB