CodeIgniter Forums
Can someone help a newbie out? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Can someone help a newbie out? (/showthread.php?tid=49491)

Pages: 1 2


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]BenBrah[/eluser]
[quote author="pbflash" date="1329875582"]What about the template, header, and footer files and where are they saved on the server?[/quote]

public_html/applications/views contains

template.php
about.us.php
contact.us.php

public_html/applications/views/includes contains

header.php
footer.php


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]BenBrah[/eluser]
[quote author="CroNiX" date="1329876224"]Remove all php ending tags from all files.[/quote]

i don't mean to question you? but wouldn't that just break everything?


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]CroNiX[/eluser]
You have periods in your filenames (except the .php part), but above, you have them with underscores.


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]CroNiX[/eluser]
[quote author="BenBrah" date="1329876621"][quote author="CroNiX" date="1329876224"]Remove all php ending tags from all files.[/quote]

i don't mean to question you? but wouldn't that just break everything?[/quote]

Nope, you only need the opening php tag at the beginning of the file but dont NEED it at the end. If you have any whitespace after your closing php tag it will cause the error you are reporting (headers already sent). So, its best to leave them off. I only mean the one at the end of the file.


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]pbflash[/eluser]
[quote author="BenBrah" date="1329876621"][quote author="CroNiX" date="1329876224"]Remove all php ending tags from all files.[/quote]

i don't mean to question you? but wouldn't that just break everything?[/quote]
No. From the user guide:
http://ellislab.com/codeigniter/user-guide/general/styleguide.html#php_closing_tag


Can someone help a newbie out? - El Forum - 02-21-2012

[eluser]BenBrah[/eluser]
[quote author="CroNiX" date="1329876684"]You have periods in your filenames (except the .php part), but above, you have them with underscores.[/quote]

typing error, the files do contain underscores sorry.

corrected all ?>

with the correct format below

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */