|
|||
|
Hi gang,
is it possible to build with Zend Framework an local website that if I choose an URL the right template will be choosen like Apache does with static websites ? This could be very helpfull if someone would like to add a big static content to one page. Thanks, Wolfgang. |
|
|||
|
Yep, that is exactly what I would like to have.
Default is maybe English, and all Templates used may end with an "_en.phtml". If user now log into the app, his language is choosen from his profile, maybe spanish and from now on all Templates should end with "_es.phtml". In my opinion this is the way. A other way would be to translate the whole content of the website, but I think this does not make a lot of sense if there are maybe online manuals which is only static html. Dynamic content has to be translated this should be problem. If someone know something better, or has a other way to work with this issue please tell me. I am currently in planning phase of the project and it could still be changed. Last edited by dogo : 08-08-2007 at 01:50 PM. |
|
|||
|
Why don't you check clients language in $_SERVER['HTTP_USER_AGENT'] ?
Mine is for example: Code:
Opera/9.22 (X11; Linux x86_64; U; pl) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|