base_url not working on Codeigniter controller -


codeigniter not recognize base_url() on specific controller, if works on other controllers , url helper autoloaded. results affected controller displaying html not necessary assets such css , js.

say view of glitched controller should display http://localhost/sub/app/assets/css/style.css on html load stylesheet properly, instead, shows http://localhost/sub/app/controller/method/assets/css/style.css.

here's log has that.

for particular glitching controller:

debug - 2013-05-08 18:02:18 --> config class initialized debug - 2013-05-08 18:02:18 --> hooks class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> output class initialized debug - 2013-05-08 18:02:19 --> security class initialized debug - 2013-05-08 18:02:19 --> input class initialized debug - 2013-05-08 18:02:19 --> global post , cookie data sanitized debug - 2013-05-08 18:02:19 --> language class initialized debug - 2013-05-08 18:02:19 --> loader class initialized debug - 2013-05-08 18:02:19 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:19 --> helper loaded: html_helper debug - 2013-05-08 18:02:19 --> helper loaded: url_helper debug - 2013-05-08 18:02:19 --> controller class initialized debug - 2013-05-08 18:02:19 --> file loaded: bulletin/views/fragments/header.php debug - 2013-05-08 18:02:19 --> file loaded: bulletin/views/fragments/navbar.php debug - 2013-05-08 18:02:19 --> file loaded: bulletin/views/manage/site-sidebar.php debug - 2013-05-08 18:02:19 --> file loaded: bulletin/views/fragments/footer.php debug - 2013-05-08 18:02:19 --> file loaded: bulletin/views/manage/site.php debug - 2013-05-08 18:02:19 --> final output sent browser debug - 2013-05-08 18:02:19 --> total execution time: 0.4196 debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> config class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> hooks class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> utf8 class initialized debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> utf-8 support enabled debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> uri class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> output class initialized debug - 2013-05-08 18:02:19 --> output class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> router class initialized debug - 2013-05-08 18:02:19 --> output class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> output class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> output class initialized debug - 2013-05-08 18:02:20 --> output class initialized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> security class initialized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> input class initialized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> global post , cookie data sanitized debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> language class initialized debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> loader class initialized debug - 2013-05-08 18:02:20 --> helper loaded: html_helper debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> helper loaded: html_helper debug - 2013-05-08 18:02:20 --> helper loaded: html_helper debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> helper loaded: url_helper debug - 2013-05-08 18:02:20 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:20 --> helper loaded: url_helper debug - 2013-05-08 18:02:20 --> helper loaded: html_helper debug - 2013-05-08 18:02:20 --> controller class initialized debug - 2013-05-08 18:02:20 --> helper loaded: url_helper debug - 2013-05-08 18:02:20 --> helper loaded: html_helper debug - 2013-05-08 18:02:20 --> helper loaded: url_helper debug - 2013-05-08 18:02:20 --> controller class initialized debug - 2013-05-08 18:02:20 --> helper loaded: html_helper error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets debug - 2013-05-08 18:02:20 --> controller class initialized error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets debug - 2013-05-08 18:02:20 --> helper loaded: url_helper error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets debug - 2013-05-08 18:02:20 --> controller class initialized debug - 2013-05-08 18:02:20 --> helper loaded: url_helper debug - 2013-05-08 18:02:20 --> controller class initialized debug - 2013-05-08 18:02:20 --> controller class initialized error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets error - 2013-05-08 18:02:20 --> 404 page not found --> manage/assets 

here's log working controller:

debug - 2013-05-08 18:01:59 --> config class initialized debug - 2013-05-08 18:01:59 --> hooks class initialized debug - 2013-05-08 18:01:59 --> utf8 class initialized debug - 2013-05-08 18:01:59 --> utf-8 support enabled debug - 2013-05-08 18:01:59 --> uri class initialized debug - 2013-05-08 18:01:59 --> router class initialized debug - 2013-05-08 18:01:59 --> output class initialized debug - 2013-05-08 18:01:59 --> security class initialized debug - 2013-05-08 18:01:59 --> input class initialized debug - 2013-05-08 18:01:59 --> global post , cookie data sanitized debug - 2013-05-08 18:01:59 --> language class initialized debug - 2013-05-08 18:02:00 --> loader class initialized debug - 2013-05-08 18:02:00 --> config file loaded: bulletin/config/config.php debug - 2013-05-08 18:02:00 --> helper loaded: html_helper debug - 2013-05-08 18:02:00 --> helper loaded: url_helper debug - 2013-05-08 18:02:00 --> controller class initialized debug - 2013-05-08 18:02:00 --> file loaded: bulletin/views/fragments/header.php debug - 2013-05-08 18:02:00 --> file loaded: bulletin/views/fragments/navbar.php debug - 2013-05-08 18:02:00 --> file loaded: bulletin/views/fragments/breadcrumb.php debug - 2013-05-08 18:02:00 --> file loaded: bulletin/views/fragments/footer.php debug - 2013-05-08 18:02:00 --> file loaded: bulletin/views/dashboard.php debug - 2013-05-08 18:02:00 --> final output sent browser debug - 2013-05-08 18:02:00 --> total execution time: 0.4465 

update: here's glitchy controller:

<?php if ( ! defined('basepath')) exit('no direct script access allowed');  class manage extends ci_controller {      public function site($section = '')     {         if($section == 'general')             redirect('/manage/site','refresh');         elseif (!empty($section))             $this->load->view('manage/site-'.$section);         else             $this->load->view('manage/site');     }  }  /* end of file manage.php */ /* location: ./app/bulletin/controllers/manage.php */ 

i provide more details need them.

thanks!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -