02-26-2009, 12:15 AM
[eluser]Marcelo Kanzaki[/eluser]
Hello everybody,
I've used CI to build a simple CMS where i can post articles that are stored in a database (so far so simple).
People can submit new articles using a form:
- Title [input text]
- body [textarea]
What i want is to be able to use template tags within my 'body' text coming from the database.
So, i would post a new article but if i put {today} in the body, it would show a variable called $today behind the scenes.
I tried with template parser but i couldn't.
Any ideas?
Hello everybody,
I've used CI to build a simple CMS where i can post articles that are stored in a database (so far so simple).
People can submit new articles using a form:
- Title [input text]
- body [textarea]
What i want is to be able to use template tags within my 'body' text coming from the database.
So, i would post a new article but if i put {today} in the body, it would show a variable called $today behind the scenes.
I tried with template parser but i couldn't.
Any ideas?