in my laravel application I have sidebar menu like following,
<ul class="nav navbar-nav">
<li class="">
<a href="">Home</a></li>
<li class="">
<a href="">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
this is working with Helper.php file in app/Helper/Helper.php3
<?php
if(! function_exists('active_menu')) {
function active_menu($currentRouteName, $requestName, $start, $finish){
if (substr($currentRouteName,$start, $finish) == $requestName){
return 'active';
}else{
return null;
}
}
}
this is working fine, but now I need change above sidemenu bar class as following,
<ul class="nav nav-sidebar">
only this change but now it is not working. how can I fix this problem?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2OiSb5C
via IFTTT
Aucun commentaire:
Enregistrer un commentaire