Welcome Guest, Not a member yet? Register   Sign In
Calling helpers/classes inside another helper
#1

[eluser]simonspoken[/eluser]
I'm writing a helper at the moment to do some custom session tracking, and I'd like to be able to access parts of the URI using the URI Class.

$this->uri->segment(n) won't work (throws an error about the use of $this) - what will?

EDIT: Turns out you can't use other classes inside helpers. I'll create a class instead. Cheers


Messages In This Thread
Calling helpers/classes inside another helper - by El Forum - 02-20-2008, 05:56 AM
Calling helpers/classes inside another helper - by El Forum - 02-20-2008, 06:25 AM
Calling helpers/classes inside another helper - by El Forum - 02-20-2008, 04:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB