0

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 ?

miken32
  • 39,644
  • 15
  • 91
  • 133
user284503
  • 408
  • 2
  • 11
  • 23

3 Answers3

7

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

davidtbernal
  • 13,073
  • 9
  • 43
  • 59
3

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.

Johrn
  • 1,332
  • 7
  • 8
0

short_open_tag is not enabled.

Ashish Ahuja
  • 4,913
  • 10
  • 51
  • 65
Soumya Roy
  • 21
  • 2