Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

update variable name : $myParams to $pageParams #7425

Merged
merged 2 commits into from
May 6, 2015

Conversation

samsonasik
Copy link
Contributor

No description provided.

@@ -130,18 +130,18 @@ public function isActive($recursive = false)
$reqParams['controller'] = $reqParams[ModuleRouteListener::ORIGINAL_CONTROLLER];
}

$myParams = $this->params;
$routeMatchParams = $this->params;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not the parameters from the RouteMatch, but parameters from the MvcPage itself. The parameters from the RouteMatch are on line 127 in the variable $reqParams (also not the best name, better is $requestParams or use $routeMatchParams here, because these are the parameters from the RouteMatch object).

If you want to rename $myParams, $pageParams is a better choice, because after all those are the parameters of the MvcPage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ;)

@samsonasik samsonasik changed the title update variable name : $myParams to $routeMatchParams update variable name : $myParams to $pageParams Apr 4, 2015
@Maks3w Maks3w added this to the 2.4.1 milestone May 5, 2015
weierophinney added a commit that referenced this pull request May 6, 2015
update variable name : $myParams to $pageParams
weierophinney added a commit that referenced this pull request May 6, 2015
@weierophinney weierophinney merged commit da2b2fa into zendframework:master May 6, 2015
weierophinney added a commit that referenced this pull request May 6, 2015
@samsonasik samsonasik deleted the var-name branch May 6, 2015 15:20
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
…ar-name

update variable name : $myParams to $pageParams
weierophinney added a commit to zendframework/zend-navigation that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants