Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-06-30 15:05:36

bluesapphire
New member
Registered: 2010-06-23
Posts: 4

How to change Zend_Locale settings in bootstrap

Like many multilingual websites, I also have same settings . A drop down list of languages( or links of different languages).  User selects a language, web page refreshes and web page is converted according to new language. 

Without ZF, I have no problem but as Iam new to ZF, can some one guide me how I can implement it in ZF. I have set _initLocale function in bootstrap file

<code>
        protected function _initLocale(){
            $locale = new Zend_Locale('to_RU');
            Zend_Registry::set('Zend_Locale', $locale);
        }
</code>

1- How can I get value of  drop down list or clicked links in bootstrap file.
2- What will be the alternative if I don't want to use Zend_Registry.

Thanks in advance

Offline

Board footer

Powered by FluxBB