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  


 [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.