Welcome Guest, Not a member yet? Register   Sign In
"<?=" does not work for me.....
#1

[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
#2

[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




Theme © iAndrew 2016 - Forum software by © MyBB