[eluser]ryan656[/eluser]
Hey Everyone,
I am working on a project with "Static Blocks" that the user can manage through the CMS. To embed them I just call the 'block' function I wrote and pass in the identifier of the block, which renders the HTML. This needs to be done inside the view file and what I really want is to allow the user to embed a template variable (something like {block=block_id}) and have the system call the block function on it's own.
I know this isn't exactly a codeigniter thing but I wanted to see if anyone here could help me out. I have looked into call_user_func, eval, template parsing classes, output buffering and so on but I am confused becauese I feel like it shouldn't be that difficult and I am just missing something, but I really don't know.
Any help would be much appreciated.
Thanks,
Ryan