• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using template tags with data coming from a database

#3
[eluser]JulianM[/eluser]
Thanks pistolPete. I needed something similar and was just thinking in create my MY_Parser until I saw this post Wink

[quote author="pistolPete" date="1235657288"]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 {
The code is untested, so please report back if its working.[/quote]


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.