-- Romeo-Adrian Cioaba <[EMAIL PROTECTED]> wrote (on Tuesday, 30 January 2007, 12:58 PM +0200): > i'm starting developing a web application and i'm thinking building it using > zend framework. i have php experience, but i haven't worked with zf before, > but > i understand the principle. > > my application will have users, each user will have blog and blog. > > what i'm interested in getting is this: > > http://www.site.com/username > http://www.site.com/username/gallery > http://www.site.com/username/blog > > can someone point me in the right direction?
I'd use the RewriteRouter for this, with a route something like: $router->addRoute('main', new Zend_Controller_Router_Route( ':user/:controller/:action/*', array( 'user' => $defaultUser, 'controller' => $defaultController, 'action' => $defaultAction )); Then, in your action controllers, you will retrieve the user parameter in order to determine which user's blog or gallery is being accessed: $user = $this->_getParam('user'); Hope that's enough to get you started. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/