[eluser]kateo[/eluser]
Hi everybody! I'am writing a code which uses personnal libraries in a controller as a plugin. My problem is that my library function is a variable. This example will show you how does my script work :
I have a generic view and I put something in like a calendar or a photo gallery. So, I have to write "$this->load->library($my_library)" in my controller to load the correct one, the value of "$my_library" come from my database. Next, when I want to use my function but I have an error. I use that : "$data['plugin'] = $this->$my_library->$my_function" to display my plugin in my view, the value of "$my_function" come from database too.
I hope you understand me, my english is not perfect...
Ask if you want some details.
Thanks