[eluser]Bart v B[/eluser]
Sorry to bump this topic up. :red:
Ok i finely have the template library working.
I was thinking to difficult.
But now i want to set some breadcrumbs.
What i read is that i put in my layout.php
Code:
<html>
<head>
<title><?php echo $template['title']; ?></title>
<?php echo $template['metadata']; ?>
</head>
<body>
<div class="container">
<?php echo $template['breadcrumbs']; ?>
<?php echo $template['body']; ?>
</div>
<div id="footer">Copyright <?php echo date('Y');?></div>
</body>
</html>
Now i have an array() as output.
Sounds fair, because there is nothing to display.
Where do i put this piece of code?
Code:
$this->template->set_breadcrumb('Blog', 'blog/index')
->set_breadcrumb($article->category->title, 'blog/category/'.$article->category->id)
->set_breadcrumb($article->title, 'blog/article/'.$article->id);
Has some one the breadcrumbs working?
Maybe a static example how this is working?