« Return to Thread: Facebook Vanity URLs

Re: Facebook Vanity URLs

by Mike Wright-4 :: Rate this Message:

Reply to Author | View in Thread

Nick M wrote:

> I used the router route hostname and chained it with a standard router:
>
> routes.user.type = "Zend_Controller_Router_Route_Hostname"
> routes.user.route = "www.domain.com"
>
> routes.user.chains.following.type = "Zend_Controller_Router_Route"
> routes.user.chains.following.route = ":username/following/*"
> routes.user.chains.following.defaults.controller = view
> routes.user.chains.following.defaults.action = following
>
> routes.user.chains.followers.type = "Zend_Controller_Router_Route"
> routes.user.chains.followers.route = ":username/followers/*"
> routes.user.chains.followers.defaults.controller = view
> routes.user.chains.followers.defaults.action = followers
>
> routes.user.chains.username.type = "Zend_Controller_Router_Route"
> routes.user.chains.username.route = ":username/*"
> routes.user.chains.username.defaults.controller = view
> routes.user.chains.username.defaults.action = index

Hi Nick,

Are these part of the same config file where resources are defined for
use by Zend_Application?

If so this might be a way to use the modular layout.  Each module's own
Bootstrap.php could contain its own routes and resources.

I'm still baffled by the new "resources" approach.  Every example helps
fill the void between my ears ;)

Thanx,
:m)

 « Return to Thread: Facebook Vanity URLs