[Solved] Highlight The Menu [closed]


When calling view pass variable which will have

   $data['selectedItem'] = '';

   $this->load->view('blogview',$data);

In blogview

  <li class="<?php echo $selectedItem == 'menuItem1' ? 'selected' : ''; ?>">menuItem1</li>
  <li class="<?php echo $selectedItem == 'menuItem2' ? 'selected' : ''; ?>">menuItem2</li>

0

solved Highlight The Menu [closed]