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

#2

[eluser]ortwin.van.vessem[/eluser]
Scaffolding is not supported in CodeIgniter 2.x anymore. If you are using 1.7.x please have a look at the documentation: http://lang-lang.org/user_guide/general/...lding.html




Theme © iAndrew 2016 - Forum software by © MyBB