Zend Framework

Parameters in chained routes get added to each route

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor 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

Activity

Hide
Wil Sinclair added a comment -

Changing issues in preparation for the 1.7.0 release.

Show
Wil Sinclair added a comment - Changing issues in preparation for the 1.7.0 release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: