View2 |
[eluser]davy_yg[/eluser]
kendaraan.php Code: <?php I try to call the function using this url: http://localhost/CodeIgniter_214/index.p...n/roda_dua Fatal error: Call to undefined method CI_Controller::Controller() in C:\xampp\htdocs\CodeIgniter_214\application\controllers\kendaraan.php on line 8 Why is it?
[eluser]noideawhattotypehere[/eluser]
change Code: parent::CI_Controller(); Code: parent::__construct(); and dont close php tag.
[eluser]davy_yg[/eluser]
It works. Why is it? I am following a book tutorial which uses Codeigniter 1.7 Is it because I am using CodeIgniter 2.1.4?
[eluser]noideawhattotypehere[/eluser]
Yes, there will be some diffrences because of changes in v.2+. PS: Keep using 2.1.4, dont use old software. |
Welcome Guest, Not a member yet? Register Sign In |