this is an error example when using @foreach on breadcrumb->setTemplate('') :
ErrorException in Breadcrumb.php(128) : eval()'d code line 3:
Undefined variable: __env
I think it's because there's new variable $__env on loop and eval cant convert it to normal php?
when I echo $parsed before eval(),it return this:
addLoop($currentLoopData); foreach($currentLoopData as $crumb): $env->incrementLoopIndices(); $loop = $env->getFirstLoop(); ?> popLoop(); $loop = $__env->getFirstLoop(); ?>
this is an error example when using @foreach on breadcrumb->setTemplate('') : ErrorException in Breadcrumb.php(128) : eval()'d code line 3: Undefined variable: __env
I think it's because there's new variable $__env on loop and eval cant convert it to normal php?
when I echo $parsed before eval(),it return this: addLoop($currentLoopData); foreach($currentLoopData as $crumb): $env->incrementLoopIndices(); $loop = $env->getFirstLoop(); ?> popLoop(); $loop = $__env->getFirstLoop(); ?>
when I use @for I can use it normally