Y
Y
Yevhenii K2015-12-07 21:06:43
PHP
Yevhenii K, 2015-12-07 21:06:43

Solved, Where is the unclosed tag here?

PHPstorm writes that the tag is not closed in these lines and the code does not work. But, everything is closed, although I may be missing something.

<li><a href="/pages/" <?php if (App::getRouter()->getController() == 'pages') {?>class = "active" <?php } ?> >Pages</a></li>
 <li><a href="/contacts/" <?php if (App::getRouter()->getController() == 'contacts') {?> class = "active"<?php } ?> >Contact Us</a></li>

PS For those who 'rezhit' the eye, the code. Please keep this part of your opinion to yourself. I'm fine, I understand that the quality of the code is low. But, I'm just learning.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Bay, 2015-12-07
@kawabanga

everything is closed, check other places. Perhaps the classes are not described in space. what does php say?

A
Anton Zhukov, 2015-12-07
@MrCheater

tag A is not closed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question