controller code is showing above H1 on static pages |
[eluser]cofmorris[/eluser]
Hi, I'm following the tutorial. Wrestled with Godaddy's requirements to get my static pages to show -- success. Now they show with my pages.php controller code above the H1 of my home and about pages as seen here: http://cammacindustries.com/ci/index.php?/pages/view/. Any advice on how to remedy this issue would be appreciated. Thanks, Chris
[eluser]cofmorris[/eluser]
Yes. The controller is an exact "copy and paste" from the tutorial.
[eluser]CroNiX[/eluser]
Try actually writing it and not copy/paste. You probably picked up some invisible character that is messing it up. This isn't a codeigniter problem. Something is making it so your server isn't interpreting the php and CI can't possibly do that.
[eluser]cofmorris[/eluser]
[quote author="CroNiX" date="1361990659"]Try actually writing it and not copy/paste. You probably picked up some invisible character that is messing it up. This isn't a codeigniter problem. Something is making it so your server isn't interpreting the php and CI can't possibly do that.[/quote] I thought it might be a syntax issue, but if it is, I'm definitely not seeing it. Code: <?php
[eluser]cofmorris[/eluser]
[quote author="ravengerpl" date="1362046503"]Add Code: ?> Hi, Ending the php doesn't affect the output and isn't evident in the welcome.php file which works: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); I'm perplexed.
[eluser]ravengerpl[/eluser]
Can you post your views files? Also add doctype to your header view (but it shouldn't cause this issue).
[eluser]cofmorris[/eluser]
[quote author="ravengerpl" date="1362097528"]Can you post your views files? Also add doctype to your header view (but it shouldn't cause this issue).[/quote] The "about" and "home" pages are simply text with no markup. The header and footer files (views/pages/templates) are exact copy&paste; from the tutorial. SEE: cammacindustries.com/ci/index.php?/pages/view/home cammacindustries.com/ci/index.php?/pages/view/about Thanks, Chris
[eluser]Otemu[/eluser]
Try a process of elimination, removing all views and starting with controller, comment out code and then test each portion eventually you will locate what is causing the issue and be able to rectify the problem. |
Welcome Guest, Not a member yet? Register Sign In |