Welcome Guest, Not a member yet? Register   Sign In
URI Segment.
#4

[eluser]Phil Sturgeon[/eluser]
You can use:

Code:
if($this->uri->segment(3, '') == 'magoo'):
{...}

I generally preffer to make use of:

Code:
$this->uri->router->class;
$this->uri->router->method;
$this->uri->router->directory;

as it means the code is a little more flexible when dealing with sub-directoried controllers.


Messages In This Thread
URI Segment. - by El Forum - 06-22-2007, 02:29 AM
URI Segment. - by El Forum - 06-22-2007, 02:38 AM
URI Segment. - by El Forum - 06-22-2007, 03:10 PM
URI Segment. - by El Forum - 06-22-2007, 05:56 PM
URI Segment. - by El Forum - 06-22-2007, 07:12 PM
URI Segment. - by El Forum - 06-22-2007, 07:13 PM
URI Segment. - by El Forum - 06-24-2007, 04:41 PM
URI Segment. - by El Forum - 06-25-2007, 10:04 AM
URI Segment. - by El Forum - 06-25-2007, 11:38 AM
URI Segment. - by El Forum - 06-26-2007, 11:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB