Welcome Guest, Not a member yet? Register   Sign In
Using template tags with data coming from a database
#1

[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?


Messages In This Thread
Using template tags with data coming from a database - by El Forum - 02-26-2009, 12:15 AM
Using template tags with data coming from a database - by El Forum - 02-26-2009, 02:08 AM
Using template tags with data coming from a database - by El Forum - 07-07-2009, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB