Merge branch 'moberemk/patch-2' into 2.5

Make HtmlHelper::addCrumb() chainable.

Refs #3002
This commit is contained in:
mark_story 2014-04-06 21:25:57 -04:00
commit 66bfce4062

View file

@ -174,12 +174,13 @@ class HtmlHelper extends AppHelper {
* @param string $name Text for link
* @param string $link URL for link (if empty it won't be a link)
* @param string|array $options Link attributes e.g. array('id' => 'selected')
* @return void
* @return this HtmlHelper
* @see HtmlHelper::link() for details on $options that can be used.
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#creating-breadcrumb-trails-with-htmlhelper
*/
public function addCrumb($name, $link = null, $options = null) {
$this->_crumbs[] = array($name, $link, $options);
return $this;
}
/**