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

ane baru belajar nieh

anekan baca ebook
terus di suruh
bikin
<?php
class Hello extends controller
{
function index()
{
$this->load->view('helloview');
}
}?
>

tapi kok malah muncul


Fatal error: Class 'controller' not found in C:\xampp\htdocs\ci\application\controllers\hello.php on line 3
Reply
#2

Hello black_end,

First, please use english when you post to this forum, if not, you will hardly get an answer...

I think I got what you mean, and it's a simple mistake with caps : you're trying to extend the Controller CI's Core Class to create your own controller, but there's a little mistake in your extends.

PHP Code:
class Hello extends Controller 

CodeIgniter classes are case sensitive so it will not work if you don't follow framework's naming conventions.

Regards,

$this.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB