Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Display String

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
hershey
Smarty n00b


Joined: 01 Mar 2018
Posts: 1

PostPosted: Thu Mar 01, 2018 3:55 pm    Post subject: Display String Reply with quote

Hello, I am currently making a website that needs to allow the user to edit there own home page with HTML and CSS. I'm going to store the HTML/Smarty template in a SQL database as I feel this is the best way to do it.

I'm just wondering if its a good idea to get the HTML source and then do $smarty->display("string:".$source); or would I be better off making custom resource class for it? I don't think there would be much difference but just want to make sure. Thanks Smile
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Mar 01, 2018 5:18 pm    Post subject: Reply with quote

Use separate Smarty object with restricted security rules to render user templates.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP