diff --git a/src/Helper/Navigation/Breadcrumbs.php b/src/Helper/Navigation/Breadcrumbs.php index 042db8e8..552110bc 100644 --- a/src/Helper/Navigation/Breadcrumbs.php +++ b/src/Helper/Navigation/Breadcrumbs.php @@ -145,8 +145,7 @@ public function renderStraight($container = null) * script. Default is to use the container registered in the helper. * @param null|string|array $partial [optional] partial view script to use. * Default is to use the partial registered in the helper. If an array - * is given, it is expected to contain two values; the partial view - * script to use, and the module where the script can be found. + * is given, the first value is used for the partial view script. * @return string * @throws Exception\RuntimeException if no partial provided * @throws Exception\InvalidArgumentException if partial is invalid array @@ -169,8 +168,7 @@ public function renderPartial($container = null, $partial = null) * script. Default is to use the container registered in the helper. * @param null|string|array $partial [optional] partial view script to use. * Default is to use the partial registered in the helper. If an array - * is given, it is expected to contain two values; the partial view - * script to use, and the module where the script can be found. + * is given, the first value is used for the partial view script. * @return string * @throws Exception\RuntimeException if no partial provided * @throws Exception\InvalidArgumentException if partial is invalid array @@ -206,8 +204,7 @@ public function getLinkLast() * Sets which partial view script to use for rendering menu. * * @param string|array $partial partial view script or null. If an array is - * given, it is expected to contain two values; the partial view script - * to use, and the module where the script can be found. + * given, the first value is used for the partial view script. * @return Breadcrumbs */ public function setPartial($partial) @@ -303,8 +300,7 @@ protected function renderPartialModel(array $params, $container, $partial) if (count($partial) != 2) { throw new Exception\InvalidArgumentException( 'Unable to render breadcrumbs: A view partial supplied as ' - . 'an array must contain two values: partial view ' - . 'script and module where script can be found' + . 'an array must contain one value: the partial view script' ); } diff --git a/src/Helper/Navigation/Menu.php b/src/Helper/Navigation/Menu.php index 0b25e98c..7222e6dd 100644 --- a/src/Helper/Navigation/Menu.php +++ b/src/Helper/Navigation/Menu.php @@ -381,8 +381,7 @@ protected function renderNormalMenu( * script. Default is to use the container registered in the helper. * @param null|string|array $partial [optional] partial view script to use. * Default is to use the partial registered in the helper. If an array - * is given, it is expected to contain two values; the partial view - * script to use, and the module where the script can be found. + * is given, the first value is used for the partial view script. * @return string * @throws Exception\RuntimeException if no partial provided * @throws Exception\InvalidArgumentException if partial is invalid array @@ -405,8 +404,7 @@ public function renderPartial($container = null, $partial = null) * script. Default is to use the container registered in the helper. * @param null|string|array $partial [optional] partial view script to use. * Default is to use the partial registered in the helper. If an array - * is given, it is expected to contain two values; the partial view - * script to use, and the module where the script can be found. + * is given, the first value is used for the partial view script. * @return string * @throws Exception\RuntimeException if no partial provided * @throws Exception\InvalidArgumentException if partial is invalid array @@ -641,8 +639,7 @@ public function getOnlyActiveBranch() * Sets which partial view script to use for rendering menu. * * @param string|array $partial partial view script or null. If an array - * is given, it is expected to contain two values; the partial view script - * to use, and the module where the script can be found. + * is given, the first value is used for the partial view script. * @return self */ public function setPartial($partial) @@ -773,8 +770,7 @@ protected function renderPartialModel(array $params, $container, $partial) if (count($partial) != 2) { throw new Exception\InvalidArgumentException( 'Unable to render menu: A view partial supplied as ' - . 'an array must contain two values: partial view ' - . 'script and module where script can be found' + . 'an array must contain one value: the partial view script' ); }