[eluser]vagabond[/eluser]
Thank you wiredesignz.
That means I cannot use public class variables within modules, right? Well, I could not make it happen whereever I declare "public $data". Seems logic now, even if I do not fully understand how things work. But now I'm having a lot more questions about how I am going to make my app work.
Forget the above example, new situation, say, I want my modules only to modify a array in my normal controller instead of output a view. Does this break the purpose of the modules/CI? As I realized that it is not possible to return things from a module (because of a eval() environment? correct me), I did the following:
Code:
$serialized_data = module::run('my_module' $array); // my module echoes serialize($array);
$array = unserialize($serialized_data);
Not that elegant but it works. Maybe I missed something and there's a better way to do that or looking at those codelines makes you look like my avatar :ahhh: Let me know, thanks.
Have a nice sunday