Method for saving Template into a file?
Posted: Thu Nov 01, 2007 1:48 am
Hello,
How can I save template to a file?
My module loads a template from /templates/ folder and displays in Admin's TextArea with
in order to edit the template.
But how can I save template back to the same file after changes are Submited, besides writing my own function?
I found only SetTemplate() method, which updates only template inside database.
Thanks.
How can I save template to a file?
My module loads a template from /templates/ folder and displays in Admin's TextArea with
Code: Select all
$this->GetTemplateFromFile('templatename');
But how can I save template back to the same file after changes are Submited, besides writing my own function?
I found only SetTemplate() method, which updates only template inside database.
Thanks.