Syntax is echoing my base URL at the top of every URL link? |
[eluser]scm22ri[/eluser]
Hi Everyone, For some reason my syntax is echoing out my base URL at the top of my page. I'm not sure why this is happening but I've been playing around with it for a few hours and can't seem to get it to work. It's prob. something silly but I can't pinpoint the error. Any help would be appreciated. Thanks This is the URL the syntax below is echoing out http://localhost/myfolder/under/states_cities How can I correct this? My Model Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); My Controller Code: public function states(){ My View Code: <?php
[eluser]jairoh_[/eluser]
i don't see anything wrong in your codes. when u say about outputting the base_url, does it only outputs in that controller or in any other controllers or models or views too? because if does, then there are some part you're extending/requiring echoes it. you just need to find it. |
Welcome Guest, Not a member yet? Register Sign In |