Welcome Guest, Not a member yet? Register   Sign In
link_tag problem
#1

[eluser]coolant[/eluser]
I downloaded the newest version of CI (1.6.0) and started getting into it.

I tried this code in my view file
Code:
<?php
link_tag('css/style.css');
?>

and the css did not stylize anything. Now, if I change line 309 in html_helper.php to echo instead of return, it works.

Any ideas why?
#2

[eluser]mdavis1982[/eluser]
Try...

Code:
<?php
echo link_tag('css/style.css');
?>

Cheers...

Matt
#3

[eluser]coolant[/eluser]
Bah! That should be fixed in the documentation then...

http://ellislab.com/codeigniter/user-gui...elper.html

Thanks Smile
#4

[eluser]wiredesignz[/eluser]
Yes I agree, CodeIgniter shouldn't force people to think. Tongue
#5

[eluser]Derek Allard[/eluser]
Sorry coolant. I've added explicit echo statements to those examples. Its fixed in the repository, and will be part of the next CodeIgniter release.
#6

[eluser]coolant[/eluser]
[quote author="wiredesignz" date="1202699734"]Yes I agree, CodeIgniter shouldn't force people to think. Tongue[/quote]

br() and heading() in the manual both show echo's before it - so just trying to be consistent.

Otherwise - I'm enjoying CI so far! Good product!




Theme © iAndrew 2016 - Forum software by © MyBB