Difference between #1 and #2 of
How to create a breadcrumb widget

Revision #2 has been created by jonah on Mar 19, 2009, 10:22:09 PM with the memo:

added flexability to the delimiter
« previous (#1) next (#3) »

Changes

Title unchanged

How to create a breadcrumb widget

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
```php
<?php
class BreadCrumb extends CWidget {

public $crumbs = array();
public $delimiter = '
/ / ';

public function run() {
[...]
}
if(next($this->crumbs)) {
echo
" {$this->delimiter} ";
}
}
[...]
array('name' => 'Login'),
),
'delimiter' => '
 &rarr; ', // if you want to change it )); ?> ```
10 0
11 followers
Viewed: 73 774 times
Version: 1.1
Category: Tutorials
Tags:
Written by: knut
Last updated by: Yang He
Created on: Mar 19, 2009
Last updated: 5 years ago
Update Article

Revisions

View all history