CakePHP Overide getCrumbList -


how can go overiding cakephp's code without creating manually myself? i'm attempting customise getcrumblist function.

the lastclass option applying class 'li' tag sucesfully, i'd remove link/ ahref altogether last tag.

function generating crumbs

echo $this->html->getcrumblist(array('class' => 'breadcrumb', 'lastclass' => 'active'), 'home'); 

output of getcrumblist

<ul class="breadcrumb"><li class="first"><a href="/">home</a></li><li><a href="/scheduler">scheduler</a></li><li class="active"><a href="/scheduler/downloadedplaylist">downloaded playlists</a></li></ul> 

simple solution - dont include url in addcrumb. doh!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -