Welcome Guest, Not a member yet? Register   Sign In
Dynamic Models and Views; Parser
#5

[eluser]popovich[/eluser]
So what do I do to return values? I do not actually need an instance of the class, I need it to run through some functions and return values, which the parser can chew on later.

This behavior will not work for me:
Code:
$temp_class = new MyOwnClass();
$data = $temp_class->some_method_to_return_values();

as the class name is being generated on the fly. This is why I use

Code:
$this->load->library($dynamic_class)

and this is why I try to get return values from within the constructor (certainly, the examples above are just there for testing the concept; there surely will be more functions for every class to run through).

Any ideas? I guess, the firstly mentioned model approach is not the best solution in this case?


Messages In This Thread
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 08:29 AM
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 09:26 AM
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 10:24 AM
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 10:42 AM
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 10:48 AM
Dynamic Models and Views; Parser - by El Forum - 03-24-2008, 11:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB