AddCrumb( name[string], link[mixed], attributes[array] )

name: The text to be displayed link = null: Can be keyed in an array (for example, array('controller'=>'posts','action'=>'add')) or entered as a string (for example, '/posts/add'); if left blank, no link will be rendered around the text attributes: HTML attributes to be passed to the <a> tag of the crumb

Adding the home page of the site to the breadcrumbs array, for example, is simple using this function:

To display the breadcrumbs, however, you must use the $html->getCrumbs() function. Some parameters exist for the $html->getCrumbs() function to better manipulate how these links are rendered.

Was this article helpful?

+1 0

Post a comment