Hello,
I am still having problem with this basic stuff in CI:
viewlatihanci.php
<button type="button" onClick="parent.location='cadd_latihan/'">Add Latihan</button><br><br>
routes.php
$route['default_controller'] = "latihanci";
$route['cadd_latihan'] = "cadd_latihan";
$route['scaffolding_trigger'] = "";
cadd_latihan.php
<?php
class Cadd_latihan extends Controller {
function index() {
$this->load->model('modellatihanci');
$data['records'] = $this->modellatihanci->tangkapdb();
$this->load->view('viewlatihanci', $data);
}
}
?>
I wonder why when someone press the button: Add Latihan, this error appears:
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 webmaster.
------------------
cadd_latihan.php --> script suppose to work!