Welcome Guest, Not a member yet? Register   Sign In
Object not found
#1

(This post was last modified: 11-18-2014, 09:42 PM by davy_yg.)

http://localhost/CI220-CRUD/member_area/


autoload.php



PHP Code:
$autoload['helper'] = array('html','form''url'); 


controllers/member_area.php


PHP Code:
class Member_area extends CI_Controller {
 
   function __construct()
 
   {
 
       parent::__construct();
 
      $this->load->model(array('Mediatutorialaccount'));
 
      $this->load->helper(array('html','url'));
 
   }
 
   
    function index
(){
 
       $data['title'] = 'Member only';
 
       $sub_data = array(
 
           'extra_script' => $this->Mediatutorialaccount->extra_script(),
 
           'column_1'  => $this->Mediatutorialaccount->update_status(),
 
           'column_2'  => $this->Mediatutorialaccount->profile_detail()
 
       );
 
       $data['body'] = $this->load->view('_member_area'$sub_datatrue);
 
       $this->load->view('_output_html'$data);
 
   }
 
   



views/_member_area.php


PHP Code:
<!--script BEGIN-->
<
script type="text/javascript">
$(
document).ready(function(){
 
 get_html_data(base_url+"profile/show_details/",'''profile_detail_loading''profile_detail');
});

function 
edit_detail(){
 
   get_html_data(base_url+"profile/show_details/edit/",'''profile_detail_loading''profile_detail');
}

function 
edit_detail_pass(){
 
   get_html_data(base_url+"profile/show_details/edit/pass/",'''profile_detail_loading''profile_detail');
}

function 
kembali(){
 
   get_html_data(base_url+"profile/show_details/",'''profile_detail_loading''profile_detail');
}

<?=
$extra_script?>
</script>
<!--script END-->
<style>
#profile_detail table td{
  vertical-align: text-top;
}
</style>
<div class="column_1" style="width:400px;">
    <?=$column_1?>
</div>

<div class="column_2" style="width:285px;">
    <?=$column_2?>
</div> 


views/_output_html.php


PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<
head>
    <
title><?=$title?></title>
        
    <link href="<?=base_url()?>templates/css/general.css" rel="stylesheet" type="text/css" />
    <script src="<?=base_url()?>templates/js/functions.js" type="text/javascript" language="javascript"></script>
    <script src="<?=base_url()?>templates/js/jquery-1.6.1.min.js" type="text/javascript" language="javascript"></script>
    <!-- script lanjutan-->
    <script type="text/javascript">
    var base_url = "<?=base_url()?>";
    </script>

</head>
<body>


<!--BEGIN MAIN DIV-->
<div class="mainDiv">
<h2>THIS IS CRUD</h2>

<?=$body?>
</div>
<!--END OF MAIN DIV-->
 
    </body>
</html> 


config/routes.php


PHP Code:
$route['default_controller'] = "welcome";
$route['404_override'] = '';
$route['member_area'] = "member_area"



When I try to access :  http://localhost/CI220-CRUD/member_area/


Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the [email=postmaster@localhost]webmaster[/email].
Error 404
localhost
Apache/2.4.7 (Win32) OpenSSL/0.9.8y PHP/5.4.22
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
Object not found - by davy_yg - 11-18-2014, 09:34 PM
RE: Object not found - by tapan.thapa - 11-18-2014, 09:52 PM
RE: Object not found - by davy_yg - 11-19-2014, 02:55 AM
RE: Object not found - by tapan.thapa - 11-19-2014, 04:19 AM
RE: Object not found - by InsiteFX - 11-19-2014, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB