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
  • 42,008
  • 16
  • 111
  • 154
user284503
  • 368
  • 3
  • 11
  • 23

3 Answers3

7

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

davidtbernal
  • 13,434
  • 9
  • 44
  • 60
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,390
  • 7
  • 8
0

short_open_tag is not enabled.

Box Box Box Box
  • 5,094
  • 10
  • 49
  • 67
Soumya Roy
  • 21
  • 2