Ticket #806 (closed defect: wontfix)

Opened 9 months ago

Last modified 9 months ago

Userdefined functions instead of hardcoded in TTemplate

Reported by: rabol Owned by: xue
Priority: low Milestone: 3.1.2
Component: Prado Framework v3 Version: 3.1
Severity: feature Keywords:
Cc:

Description

In file /Web/UI/TTemplateManager.php, class TTemplate method parse(), configureProperty() uses 'hardcoded' method names, it would be very nice if it was possible to suplly your own e.g instead of Prado::localize() one could use MyTransFunc?()

Attachments

TTemplateManager.php (35.9 kB) - added by rabol 9 months ago.
TThemeManager - with option to set localize function
TThemeManager.php (14.3 kB) - added by rabol 9 months ago.
TThemeManager - Option to set localize function

Change History

Changed 9 months ago by xue

  • milestone set to 3.1.2

Changed 9 months ago by rabol

TThemeManager - with option to set localize function

Changed 9 months ago by rabol

TThemeManager - Option to set localize function

Changed 9 months ago by rabol

Sorry wrong description for the TTemplateManager.php - but right file :-)

Changed 9 months ago by xue

  • status changed from new to closed
  • resolution set to wontfix

You may consider creating your own Prado class based on PradoBase? and overwrite its localize() method. Your issue is better solved by this way.

Note: See TracTickets for help on using tickets.