Hello,

I've been doing some forms and the way I'm assigning the Zend_Translate
object to the Zend_Form object is like this:

$form->setTranslator(Zend_Registry::get('my_translate'))

As you can see I have a different name that we have been using for a while
now 'my_translate'.

I know that Zend_Form picks up the 'Zend_Translate' object using that same
name as the key so you don't have to do the 'setTranslator' every time on
your controllers.

Now on the other hand I have a custom Zend_View implementation using Smarty,
so when I create the View on the bootstrap I set up first the translator and
then add the view to the action_helper_viewrenderer which uses that on all
the views I will generate from now on.

The final question is. It is possible that Zend_Form picks up the
Zend_Translate object from the View, without getting it out from the
registry or the view manually on each controller?

Thank you.

Reply via email to