News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Chaining language with default route
August 12, 2010 @ 10:47:01

On the Zend Developer Zone there's a new post talking about including language information in your Zend Framework application's default route in a cleaner manner.

There are several ways how to include language id in default route of Zend Framework. However, generally you end up with the solution not quite elegant and likely not totally trouble-free. I have seen people overwriting the default route by new one which mimics module route with additional language id. There is no need to throw the default module route away to do this. To get it right chain the plain language route with default route.

He gives code examples of the routing code to put in your bootstrap that uses the Zend_Controller_Router_Route_Chain and a plugin to handle the language checking and routing handling.

0 comments voice your opinion now!
default route zendframework plugin


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Pastebin app updates

PHPImpact Blog: PHPUnit: Testing Zend Framework Controllers

Nick Halstead's Blog: Zend Framework RC1 and Zend ACL usage

Dave Marshall's Blog: ZFSnippets.com - Zend Framework Code Snippets

Kevin Schroeder's Blog: ZendCon 2010 Podcast - Introducing Zend Framework 2.0


Community Events

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


opinion introduction extension php7 framework library podcast language laravel5 version release security api community series interview unittest laravel development voicesoftheelephpant

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