namesco / ZTal

ZTal makes integrating the PHP templating system PHPTAL into Zend Framework easy.
Other
21 stars 3 forks source link

Cannot create forms without translation #3

Closed marcusjhdon closed 13 years ago

marcusjhdon commented 13 years ago

When translation services are disabled, it isn't possible to render an instance of Ztal_Form because it still tries to call the translate() method.

far-blue commented 13 years ago

I've created a new 'mock' translation subclass which will be instantiated when translation is not enabled in Zend Framework. This should make i18n-enabled macros such as the form macros use-able in apps that don't use translation. The updated code is in the dev branch - please give it a go and let me know your thoughts :)