2

Can anyone please tell me where i am wrong,

Just want to send one variable from one blade through include but getting error.The code in view is

@include('core::partials/breadcrumb/breadcrumb-list', array('breadcrumb' => $breadcrumb,'value'=>'none'))

and when i display this variable using {{$value}} giving me error.

Please help me out

user2110253
  • 315
  • 4
  • 12
  • Undefine variable error details good read is this : http://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index – Marc Giroux Jun 17 '16 at 12:38

1 Answers1

1

You have wrongly entered view name.

It should be:-

@include('view.name', array('some'=>'data'))

Refer documentation

Ravi
  • 6,311
  • 1
  • 23
  • 41
  • THANKS FOR REPLYING BUT WHERE i AM WRONG DIDN'T FIND – user2110253 Jun 17 '16 at 13:20
  • @user2110253 should be `@include('core::partials.breadcrumb.breadcrumb-list', array(....` – thefallen Jun 17 '16 at 13:21
  • @user2110253: Can you please share your folder structure? Why do you need to write core? you can access view from nested folder directly like **'folder1.folder2.folder3.filename'** – Ravi Jun 17 '16 at 14:18