Welcome Guest, Not a member yet? Register   Sign In
Manual outputting...
#3

[eluser]gtech[/eluser]
to template stuff I normally store a header field and a footer field in the database with HTML content.
I then read the header and footer out of the database and then pass it to the view..

<?=$header?>
.. web content goes here
<?=$footer?>



Another way you could do it is store the users html in the database the user can put !var! in their html. when you read it out of the database you can do a preg_replace on the data to replace the !var!'s with your variables. you can wither echo the result or pass it to a view.



umm how else, ahh allow the user to upload a view and store it on the server (could be dangerous)


probably several ways to do it.


Messages In This Thread
Manual outputting... - by El Forum - 11-14-2007, 05:35 PM
Manual outputting... - by El Forum - 11-15-2007, 06:16 PM
Manual outputting... - by El Forum - 11-15-2007, 07:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB