Welcome Guest, Not a member yet? Register   Sign In
scaffolding
#1

[eluser]davy_yg[/eluser]

Hello,

I create this page:

controllers/cberitainyong.php

Code:
<?php

class Cberitainyong extends CI_Controller {

function Cberitainyong() {
  parent::__construct;
  $this->load->scaffolding('berita');
}

function index(){
  $this->load->model('mkabarinyong');
  $data['records']=$this->mkabarinyong->ambildatabase();
  $this->load->view('vkabarinyong', $data);
}
}

?>

I also add this code in routes.php

Code:
$route['scaffolding_trigger'] = "scaffolding";

I want to see the result by typing this url: http://localhost/CodeIgniter_214/index.p...caffolding


404 Page Not Found

The page you requested was not found.

Why is it ?

According to book tutorial it suppose to show me the scaffolding result (it just using codeigniter 1.7) - I already try to adjust it to codeigniter 2.4.1 - except that I do not know about the routes code that I add if it's correct or not in codeigniter 2.4.1



Messages In This Thread
scaffolding - by El Forum - 08-07-2013, 06:32 AM
scaffolding - by El Forum - 08-07-2013, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB