![]() |
__call
Hi!
I'm intrigued(spelling?) how this really works. I have it set up like this: In my DB object PHP Code:
PHP Code:
that gets on ONE line, so when it calls the function the function will be: $this->DB_Helper->order_by('test_cat, DESC'); Leaving the second option out.. how can I get it to actually set the two parameters(or even more parameters) ?? |
You could use call_user_func_array.
|
Thanks! You mean I should use that in the __call function?
PHP Code:
Is this the most efficiant/best way to do this? |
PHP Code:
|
Worked like a charm.
Thanks alot!! |
| All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0