문제

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 ?

도움이 되었습니까?

해결책

Check your php.ini, you probably have short tags disabled. See the manual page

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top