Welcome Guest, Not a member yet? Register   Sign In
How do I retrieve a uri segment in a hook?
#15

[eluser]Jelmer[/eluser]
I didn't mean it would have to be the define() statement, I used that as an example.

Bottom line still is that errors don't show unless they're fatal or possibly unless they happen after something. I can't tell from this, you'll have to find the mistake. You might try placing a exit() statement directly after fetching the URI - if you see the output: that's not what goes wrong, if you don't that might be what causes the error. But without the actual error you still don't know why.
Example:
Code:
// Change this
$x = load_class('URI')->segment(1);

// To this:
$x = load_class('URI')->segment(1);
exit ('segment 1: '.$x);


Messages In This Thread
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 12:43 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:11 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:26 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:29 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:31 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:40 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:43 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 01:54 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 02:03 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 02:07 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 02:28 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 03:20 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 03:53 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-09-2010, 06:49 PM
How do I retrieve a uri segment in a hook? - by El Forum - 08-10-2010, 03:47 AM
How do I retrieve a uri segment in a hook? - by El Forum - 08-10-2010, 03:57 AM
How do I retrieve a uri segment in a hook? - by El Forum - 08-10-2010, 04:12 AM
How do I retrieve a uri segment in a hook? - by El Forum - 08-10-2010, 04:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB