Welcome Guest, Not a member yet? Register   Sign In
Library, Controller, View issue
#6

[eluser]TheFuzzy0ne[/eluser]
I'd be interested to know if making that class into a static class would help. Just include the file, and then try:
Code:
myclass::myval++;

Another suggestion might be to do this in the view:
Code:
$CI =& get_instance();
$CI->myclass->myval++;

Whilst I'm not entirely sure what's going on, I'm sure at least one of those solutions will work.


Messages In This Thread
Library, Controller, View issue - by El Forum - 06-18-2009, 01:49 PM
Library, Controller, View issue - by El Forum - 06-18-2009, 02:15 PM
Library, Controller, View issue - by El Forum - 06-18-2009, 03:27 PM
Library, Controller, View issue - by El Forum - 06-18-2009, 03:33 PM
Library, Controller, View issue - by El Forum - 06-18-2009, 03:37 PM
Library, Controller, View issue - by El Forum - 06-18-2009, 03:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB