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

[eluser]m4rw3r[/eluser]
Use the function get_instance(), it will return your controller object.

Ex.
Code:
$CI =& get_instance();
$CI->uri->segment($n);


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