Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.13

Request #2258 can not specify Translation2 option parameters
Submitted: 2004-08-31 09:11 UTC
From: aivarsak at inbox dot lv Assigned:
Status: Verified Package: HTML_Template_Flexy
PHP Version: 4.3.8 OS: Win2k
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 17 + 45 = ?

 
 [2004-08-31 09:11 UTC] aivarsak at inbox dot lv
Description: ------------ I am trying to use Flexy template engine with Translation2 (driver DB) supprot. So there is no option to specify 'param' argument (i.e. mappings between table/field names and the ones used by this class) for Translation2 class through Flexy engine. It seems impossible to make it (DB translation) work with flexy :( Reproduce code: --------------- Flexy option: 'Translation2' => array ('driver' => 'DB' ,'options' => array( 'hostspec' => 'host', 'database' => 'dbname', 'phptype' => 'mysql', 'username' => 'usr', 'password' => 'pws'))

Comments

 [2004-08-31 09:14 UTC] alan_k
the work around is probably to do 'Translation2' => new Translator2($options); I'll have to look at this - it should work as you show.