+ Reply to Thread
Results 1 to 2 of 2

Thread: Zend Route Hostname + locale

  1. #1
    gentlemich is offline Junior Member
    Join Date
    Jan 2009
    Posts
    19

    Default Zend Route Hostname + locale

    Hello,
    I've got two questions about how to use Zend_Controller_Router_Route_Hostname:

    1) How do I make sure that all the requests with a subdomain, are using a predefined module? For example mysite.com should use the default module while a.mysite.com should use the "a" module.
    I want do display any page within this subdomain (e.g. a.mysite.com/controller/action). Any example using a INI configuration file would be greatly appreciated!

    2) subdomain can point to pages in multiple languages, for example: a.mysite.com is a subdomain in french while b.mysite.com is in spanish. So my question is: What's the best way to detect the language according to the word (a, b, ...) and change the locale so that the page displays in the correct language? A plugin?

    Thanks!
    Mike

  2. #2
    M4d3L is offline Junior Member
    Join Date
    Jun 2008
    Posts
    5

    Default

    You can go see my small tutorial on language routing.

    M4d3L-Network Blog Add language route to your Zend Framework project.

    Then change the chain route to be apply to hostname else to the Request URI.

+ Reply to Thread

Similar Threads

  1. Multiple Zend applications same hostname
    By BartTosotm in forum Authentication & Authorization
    Replies: 1
    Last Post: 07-02-2010, 10:47 AM
  2. Message: The locale 'HH' is no known locale
    By phpveteran in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 02-24-2010, 07:16 PM
  3. zend route assembling parameters from other route
    By erwanpia in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 11-02-2009, 11:56 AM
  4. Zend Navigation and Locale
    By bo bo in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 08-31-2009, 10:02 PM
  5. Zend Locale with Zend Date
    By smartcoderin in forum General Q&A on Zend Framework
    Replies: 1
    Last Post: 11-13-2008, 05:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts