Posted By

ericmuyser on 09/08/11


Tagged

php Smarty


Versions (?)

Render Smarty Plugin Content in Vanilla


 / Published in: PHP
 

  1. <?
  2. function render_smarty_plugin($name) {
  3. $path = sys_get_temp_dir();
  4. $filename = 'a' . uniqid();
  5.  
  6. file_put_contents($path . '/' . $filename, '{' . $name . '}');
  7.  
  8. $smarty = new Gdn_Smarty(); $smarty->Render($path . '/' . $filename, $this);
  9. }
  10. ?>

Report this snippet  

You need to login to post a comment.