|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
hershey Smarty n00b
Joined: 01 Mar 2018 Posts: 1
|
Posted: Thu Mar 01, 2018 3:55 pm Post subject: Display String |
|
|
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 |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Mar 01, 2018 5:18 pm Post subject: |
|
|
Use separate Smarty object with restricted security rules to render user templates. |
|
Back to top |
|
|
|
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
|