2009年7月7日星期二

[fw-mvc] basic questions about Zend_Controller_Router_Route

Dear Everyone,

I have a very basic question regarding Zend_Controller_Router_Route.

I've read the manual and hoping to get more explanations. Below is the
code snippet in the manual :

$route = new Zend_Controller_Router_Route(
'author/:username',
array(
'controller' => 'profile',
'action' => 'userinfo'
)
);

$router->addRoute('user', $route);


my questions are:
1. what is 'user' ?
2. where should you put this code?

Thanks a lot for the help!
-Ari-

没有评论: