user1323326
user1323326

Reputation:

How to make a dynamic breadcrumb CakePHP?

How to make a dynamic breadtsrumb CakePHP ? For example, I have a url http://site.com/post/first/add To breadcrumb automatically generated in such Layouts Home > post > first > add

Upvotes: 1

Views: 6233

Answers (2)

arp
arp

Reputation: 1368

try this link.it will solve you issue http://www.codetweet.com/php-2/breadcrumb-helper-class-in-cakephp/

Upvotes: 0

Lobo
Lobo

Reputation: 4137

Using the HTML Helper:

echo $this->Html->getCrumbs(' > ','Home');

Other examples:

$this->Html->addCrumb('Users', '/users');
$this->Html->addCrumb('Add User', '/users/add');

More info: http://book.cakephp.org/1.3/view/1653/Creating-breadcrumb-trails-with-HtmlHelper

Regards!

Upvotes: 2

Related Questions