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

smarty with perl LWP

 
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 -> General
View previous topic :: View next topic  
Author Message
Demerzel
Smarty Rookie


Joined: 31 Jan 2010
Posts: 26

PostPosted: Sat Mar 17, 2012 6:47 pm    Post subject: smarty with perl LWP Reply with quote

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
View user's profile Send private message
Demerzel
Smarty Rookie


Joined: 31 Jan 2010
Posts: 26

PostPosted: Sat Mar 17, 2012 7:16 pm    Post subject: Reply with quote

enclosed with translation files, and it works
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 -> General 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