News Feed
Jobs Feed
Sections




News Archive
feed this:

Robert Basic's Blog:
A hack for Zend Framework's translated route segments
April 15, 2011 @ 09:17:40

Robert Basic has put together a new post to his blog about a hack he's found for the Zend Framework translated route segments when a "gotcha" popped up when he was trying to use them in a multi-language website.

The web site's default locale, language, is English. If the user has no locale in the session/cookie, she, or he, will get the English version of the web site. [...] But! If the user's first visit is on the http://example.com/vesti URL ("vesti" is "news" in Serbian), the router can't route that because it depends on the locale and the default locale is English and not Serbian, thus directing the user to the 404 page.

To get around this issue he created a front controller plugin that fires in the postDispatch hook to change the locale manually if the current request's isn't found to be English. It then redirects the user to the correct location for the new language and things proceed normally.

0 comments voice your opinion now!
zendframework hack multilanguage route segment issue


Chris Shiflett's Blog:
Ask Chris Is Back
February 27, 2006 @ 08:20:25

As noted in his latest blog entry, Chris Shiflett and the Pro::PHP podcast are again collaborating to bring the listening community more "Ask Chris" shows.

It's been a few months since Episode One, but thanks to Marcus, Ask Chris is back on the air. The format is a bit different - instead of doing separate shows, we'll be doing a short segment at the end of each interview.

This interview is with David Sklar of Ning. He and Marcus discuss Ning, of course, but David also provides some good perspective on the state of technology and how the definition of a programmer is becoming more and more inclusive.

This episode of Ask Chris is about email injection, a topic of growing concern for PHP developers.

You can find out more about this addition to the Pro::PHP lineup and how to subscribe to the podcast over on their site.

0 comments voice your opinion now!
ask chris podcast short segment end recording ask chris podcast short segment end recording



Community Events











Don't see your event here?
Let us know!


series community functional framework application development example interview code release phpunit language podcast tool testing introduction conference unittest zendframework2 opinion

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework