CodeIgniter Forums
"<?=" does not work for me..... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: "<?=" does not work for me..... (/showthread.php?tid=11588)



"<?=" does not work for me..... - El Forum - 09-15-2008

[eluser]Mr Lazy[/eluser]
Hello,

I have been trying to set up the layout for my first CodeIgniter site, and I hit the annoying snag that when outputting into a master layout template, this worked:
Code:
<!-- Displays the main content for the page. -->
<?php echo $content; ?>

but this did not..

Code:
<!-- Displays the main content for the page. -->
<?= $content ?>

nothing was outputted at all. What is going on here?

Many Thanks,
L


"<?=" does not work for me..... - El Forum - 09-15-2008

[eluser]xwero[/eluser]
three possibilities :

- the php.ini setting doesn't allow short tags
- the CI rewrite_short_tags is FALSE instead of TRUE
- content has no visible value to echo