Welcome Guest, Not a member yet? Register   Sign In
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


Messages In This Thread
Fatal error: Class 'Builderhome' not found in C:xampphtdocsmetusystemcoreLoader.php on line 188 - by El Forum - 08-06-2012, 10:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB