0

I got a quick question, i am trying to get an variable into my breadcrumbs widget, but sadly this isn't working. Am i doing something wrong? I got my code like this:

<?php
$this->breadcrumbs = array(
    'item#1'=>array('/controller/action'),
    'item#2'=>array('/controller/action'),
    'item#3'=>array('/controller/action'),
    '{$var->id}'
);
?>

Kind regards,

Augus

Augus
  • 495
  • 1
  • 8
  • 24

1 Answers1

3

It's just a simple array, so :

<?php
$this->breadcrumbs = array(
  'item#1'=>array('/controller/action'),
  'item#2'=>array('/controller/action'),
  'item#3'=>array('/controller/action'),
  $var->id
);
?>
Twisted1919
  • 2,430
  • 1
  • 19
  • 30