On a side note jorginho, get out of the habit of using the PHP short tag syntax of <?= ?>, because this is a feature that can be disabled. Therefore, your code is not portable. Also, XML uses <?xml ?> and so using anything other than the long php syntax can potentially cause problems.
Instead, always, always, always, always (did I say it enough) write your PHP tags using the standard "long" syntax of <?php ?>. (always)
(Just my 2 cents... Don't spend it all in one place.) 🙂