https://github.com/nobuti/Codeigniter-breadcrumbs
Mam ścieżkę
http://localhost:8080/projekt/backend/modu...42/modules/show
i za nic nie rozumię skąd po wywołaniu ścieżki tj:
$this->breadcrumbs->unshift('Home', '/');
dostaje:
Home / AS / modules / 342
powinno być
Home / backend / modules / 342
Skąd się bierze to AS?
sposób jaki wymyśliłem by to obejśc to if likfidujący to, ale co to wgle jest?
function show() { if ($this->breadcrumbs) { // set output variable $output = $this->tag_open; // construct output foreach ($this->breadcrumbs as $key => $crumb) { $output .= $this->crumb_last_open . '' . $crumb['page'] . '' . $this->crumb_close; } else { $output .= $this->crumb_open . '<a href="' . $crumb['href'] . '">'; if($crumb['page'] =='AS'){ $output .= 'sss'; } else { $output .= $crumb['page']; } $output .= '</a> ' . $this->crumb_divider . $this->crumb_close; } } // return output return $output . $this->tag_close . PHP_EOL; } // no crumbs return ''; }