zend framework / view <?= does not work ? why?
-
21-09-2019 - |
Question
Strange.. with my installation of the Zend Framework
<?php echo $this->user; ?> works fine but
<?= $this->user; ?> does not work
Anyone have an idea what is the problem ?
Solution
Check your php.ini, you probably have short tags disabled. See the manual page
OTHER TIPS
Looks like your server configuration has short_open_tag turned off. This is generally a good thing, short_open_tag saves you some characters but can cause problems while parsing some types of documents.
I'd leave it off unless you know for sure that you will need it.
short_open_tag
is not enabled.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow