Example #1
0
 public function displayBreadCrumb()
 {
     $result = '';
     if (!$this->getId()) {
         return '<a href="/Store/Category">Back to categories</a>';
     }
     $parent = new Category($this->getParentCategory());
     return $parent->displayBreadCrumb() . ' | <a href="/Store/Category/' . $this->getId() . '">' . $this->getName() . '</a>';
 }