Installation and testing |
Hallo, i have codigniter 3.0 in a local server installed
when in the browser i digit : 'localhost/myweb/index.php' it 'is all ok (myweb is the alias for easyphp server) when in the browser i digit : 'localhost/myweb/index.php/test' it' is worng. (where test is a copy from welcome.php controller within the class name Test WHY? Tanks' (08-08-2015, 07:06 AM)stefano.zullo Wrote: it' is worng. (where test is a copy from welcome.php controller within the class name Test When you are copy your controller file have you change the name of the class Welcome for Test and don't forget $this->load->view('test'); class Welcome extends CI_Controller { } Turn into: class Test extends CI_Controller { /** * Index Page for this controller. etc.... * */ public function index() { $this->load->view('test'); } }
I've just seen your file test.php. You write 'welcome_message_1' when you call your view.
Have you create this file welcome_message_1.php in the views folder ? |
Welcome Guest, Not a member yet? Register Sign In |