Welcome Guest, Not a member yet? Register   Sign In
Call function when template variable or substring found
#1

[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


Messages In This Thread
Call function when template variable or substring found - by El Forum - 06-07-2011, 03:29 AM
Call function when template variable or substring found - by El Forum - 06-07-2011, 03:05 PM
Call function when template variable or substring found - by El Forum - 06-12-2011, 05:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB