I need help converting the following line of code to Htmlhelper. <li><a href="/"><i class="fa fa-book"></i> <span>List Articles</span></a></li>
I only know how to add the controller and actions. <li><?= $this->Html->link(__('List Articles'), ['controller' => 'Articles', 'action' => 'index']) ?></li>
Thank you so much!
This worked for me. <li><?= $this->Html->link('<i class="fa fa-book"></i> <span>List Articles</span>', ['controller' => 'Articles', 'action' => 'index'], ['escape' => false]) ?></li>