Welcome Guest, Not a member yet? Register   Sign In
Profiler not loading
#1

[eluser]Unknown[/eluser]
Hi Guys,

I'm currently building a CMS with codeigniter.
For that I needed to move the views folder to the root since i'm working with theme folders containing all the assets, which are not reachable in the views folder due to the .htaccess.

I was noticing some slow actions and high memory usage when clicking through the generated templates and decided to check it out with the profiler, but whenever I try to enable the profiler the page goes blank and I get this error;

Quote:[23-Aug-2013 09:48:24 Europe/Amsterdam] PHP Fatal error: Call to a member function load() on a non-object in /igniter/system/core/Loader.php on line 580

I edited this system file to enable my root template folder system/core/Loader.php, and yes I know it's bad practice to edit system files, looking for a better option...

Code:
public function __construct()
{
  $this->_ci_ob_level  = ob_get_level();
  $this->_ci_library_paths = array(APPPATH, BASEPATH);
  $this->_ci_helper_paths = array(APPPATH, BASEPATH);
  $this->_ci_model_paths = array(APPPATH);
  //$this->_ci_view_paths = array(APPPATH.'views/' => TRUE);
  $this->_ci_view_paths = array('./templates/' => TRUE);

  log_message('debug', "Loader Class Initialized");
}

When I change the system files back to default en only load a view instead of parsing the profiler works...

Any idea's?

Thanks in advance
#2

[eluser]InsiteFX[/eluser]
Download this and see how I added Twitter Bootstrap themes.

Bootstrap Dashboard with themes

Look in the assets/css folder.

No need to move the view folder.
#3

[eluser]Unknown[/eluser]
ill check it out, thanks for the reply!




Theme © iAndrew 2016 - Forum software by © MyBB