Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7 Preview Release
-
Fix Version/s: 1.7.0
-
Component/s: Zend_Controller
-
Labels:None
Description
$pathRoute = new Zend_Controller_Router_Route(
':controller/:action/*',
array(
'controller' => 'index',
'action' => 'index'
)
);
$accountRoute = new Zend_Controller_Router_Route_Hostname(
':account.myapp.com',
array(
'module' => 'account',
),
array(
'account' => '([a-z0-9]+)',
)
);
$router->addRoute('account', $accountRoute->chain($pathRoute));
Assembling this route with the gives the following result:
http://accountvalue.myapp.com/controller/action/account/accountvalue
Where as I only want:
http://accountvalue.myapp.com/controller/action
Changing issues in preparation for the 1.7.0 release.