|
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 |
Demerzel Smarty Rookie
Joined: 31 Jan 2010 Posts: 26
|
Posted: Sat Mar 17, 2012 6:47 pm Post subject: smarty with perl LWP |
|
|
I have php page with smarty that translates english words just fine. When I call the same page with PERL LWP translation stops working. In fact I have no idea what to look for?
In both cases I use my_page.php which generates file with code something like that
Code: |
if(isset($engine['plugin']) && file_exists(DOC_DIR.'/templates/'.$engine['name'].'/'.$engine['plugin'].'.php'))
include(DOC_DIR.'/templates/'.$engine['name'].'/'.$engine['plugin'].'.php');
// get plugin content
$SMARTY->assign('plugin_result', $result);
$file = DOC_DIR.'/tmp.file';
$fh = fopen($file, 'w');
fwrite($fh, $output);
fclose($fh);
|
|
|
Back to top |
|
Demerzel Smarty Rookie
Joined: 31 Jan 2010 Posts: 26
|
Posted: Sat Mar 17, 2012 7:16 pm Post subject: |
|
|
enclosed with translation files, and it works |
|
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
|