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  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2004-11-02 05:13 UTC
Package:
Bug Type:
Summary:
From: aivarsak at inbox dot lv
New email:
PHP Version: Package Version: OS:

 

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