• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Class 'Builderhome' not found in C:xampphtdocsmetusystemcoreLoader.php on line 188

#1
[eluser]OKIEWARDOYO[/eluser]
i'm trying to create a code usign codeigniter,
i thought everything was fine,until i update to xampp 1.8.0 yesterday.
now, everytime i open my page it alwas say
"Fatal error: Class 'Builderhome' not found in C:\xampp\htdocs\metu\system\core\Loader.php on line 188"

Here is the code, i have just 2 page here
welcome.php(controller) and builderhome.php(model), please see the code below:

-welcome.php
Code:
<?php
/***************************************************************************
*
***************************************************************************/
class Welcome extends CI_Controller {

function __construct()
{
  parent::__construct();
  $this->load->library(array('session'));
  //
  $this->load->model(array('Mediatutorialheader','Builderhome'));
  
}

function index()
{
  $site_details = $this->Mediatutorialheader->site_details();
  $data = array(
   'title' => $site_details['site_title'],
   'keyword' => (isset($site_details['site_keyword']))?$site_details['site_keyword']:'',
   'description' => $site_details['site_description'],
   'body' => $this->Builderhome->execute_all_blocks(),
  );
  $this->load->view($this->Mediatutorialheader->get_site_template().'_output_html', $data);

}
}

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

-builderhome.php
Code:
<?
/***************************************************************************
*
***************************************************************************/

class Builderhome extends CI_Model {
    function __construct()
    {
        parent::__construct();
        $this->load->library(array('session'));
        $this->load->model(array('Mediatutorialheader', 'Mediatutorialbuilder'));
        $this->load->helper(array('html','url'));
    }
    
    function execute_block($block_function){
        $function = array();
        $function['blockPromo'] = $this->blockPromo();
        $function['blockBlogs'] = $this->blockBlogs();
        $function['blockMembers'] = $this->blockMembers();
        $function['blockMediatutorial'] = $this->blockMediatutorial();
        
        foreach($function as $key => $value)
            if($block_function == $key)
                return $value;
    }
    
    function execute_all_blocks(){
        return $this->Mediatutorialbuilder->execute_all_blocks('home');
    }
    
    function blockPromo(){        
        $site_details = $this->Mediatutorialheader->site_details();
        /*$data = array( //nah, ini fungsi asli
                'title' => $site_details['site_title'],
                'description' => $site_details['site_description']
        );
        */
        
        $data = array( //KALO INI CUMAN COBA COBA
                'title' => $site_details['site_title'],
                'description' => $site_details['site_description'],
                'container' => $this->load->view($this->Mediatutorialheader->get_site_template().'_1_coba_profile_pic', '',true)
        );
        
        return $this->load->view($this->Mediatutorialheader->get_site_template().'_builder_block_promo', $data, true);
    }
    
    function blockBlogs(){
        return 'Content blog nanti di sini';
    }
    
    function blockMembers(){
        return 'Content members nanti di sini';
    }
    
    function blockMediatutorial(){
        return 'Content mediatutorial nanti di sini';
    }
}
?>

can somebody have a suggestion?
PLEASE I ALSO have included file in attachment below
http://i1161.photobucket.com/albums/q502...gniter.jpg

#2
[eluser]InsiteFX[/eluser]
try using lowercase names

#3
[eluser]OKIEWARDOYO[/eluser]
Lowercase?

which code that i should change name to lowecase?

#4
[eluser]OKIEWARDOYO[/eluser]
Yes, it happened with xampp 1.8.0 ONLY,
i have just checking using another of my computer that still using xampp 1.7.9, it works normally, but not for the latest xampp

anybody has the same problem like me here?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.