i have a variable in layout file like this
$bmodal =array(
'data-target' => '#myModal',
'data-toggle' => 'modal'
);
I want to call $bmodal
in a link in a view file to optimize the code How can i do that? Any one can help? Thanks
You can do this through a helper, you can make your own helper in which you can pass the variable in your link.
Views are rendered before layouts so you can not.