Using template tags with data coming from a database |
[eluser]pistolPete[/eluser]
The template parser class ist the way to go, but it expects the view to be a local file. So you have to extend the parser class. The following code adds a method parse_string() to the parser class which allows you to parse a string coming from db. Code: class MY_Parser extends CI_Parser { Usage: Code: // the data which should be used instead of the {variables} The code is untested, so please report back if its working. |
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
|