[eluser]Unknown[/eluser]
Hi,
I just made a lib that i want to share here.
This library ( "posts_parser") parse specific code and arguments in string and call a function that replace this string with what you want. Just like Wordpress shortcodes function does.
It's mainly useful for backend posts management, through any WYSIWYG editor.
This library as two files:
"Posts_parser" (the core),
"Tags_functions" (child class, automatically callled by posts_parser, where you write parsing functions).
I decide to use 2 files to separate core and specific site functions, but you can merge them in a single file if you prefer.
syntax handled is like this:
Code:
[function arg1="value" arg2="value" ..etc]
In the archive, you'll find a example controller and view that show how the lib works.
Hope it's help.